/* 器用脳テスト-色編（元: studyinuniv.blogspot.com の埋め込み版）
   Bloggerテンプレート依存を取り除き、単独ページとして成立するよう調整済み。
   他アプリと干渉しないよう、このフォルダ内で完結しています。 */

body{
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", YuGothic,
               "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", Arial,
               "メイリオ", Meiryo, sans-serif;
  background: #ffffff;
}



body{font-family:
-apple-system, BlinkMacSystemFont, "Helvetica Neue", YuGothic, "ヒラギノ角ゴ ProN W3", Hiragino Kaku Gothic ProN, Arial, "メイリオ", Meiryo, sans-serif!important;
}





body{
  margin: 0;
}

a{
  text-decoration: none;
}

.none{
  display: none;
}

.header{
  font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    background: whitesmoke;
    border-bottom: 1px solid #929292;
    border-top: 1px solid #929292;
    padding: 10px;
}

.start_wrap{
  margin-top: 10%;
    margin-left: 20px;
    margin-right: 20px;
}

.eyecatch{
  text-align: center;
    margin-bottom: 10%;
}

.eyecatch img{
  width: 60%;
}

.attention{
  font-weight: bold;
}

.detail ol li{
  margin-bottom: 16px;
}

.start_button_wrap{
  text-align: center;
  margin-top: 32px;
margin-bottom: 32px;
}

.start_button{
  display: inline-block;
      padding: 10px 20px;
      background: #f5f5f5;
      border: 1px solid #7c7c7c;
}
.main_wrap{
  display: none;
}

.result_wrap{
  display: none;
}


.time_wrap{
  margin-bottom: 30px;
}

.square_wrap{
  text-align: center;
}

.square{
  width: 100px;
  height: 100px;
  background: #ff5353;
  display: inline-block;
}

.choices_wrap{
  margin-top: 40px;
}

.choice{
  box-sizing: border-box;
  display: inline-block;
  width: 40%;
  float: left;
  text-align: center;
  font-size: 1.5rem;
  border: 2px solid #bdbdbd;
  line-height: 4rem;
  margin: 5%;
  font-weight: bold;
margin-bottom:1%;
}
.clear{
  clear: both;
}

.table_wrap{
  margin: 12px;
  margin-bottom: 30px;
}

table{
  width: 100%;
  border-collapse:separate;
  border-spacing: 0;
}

table th:first-child{
  /* border-radius: 18px 0 0 0; */
}

table th:last-child{
  /* border-radius: 0 10px 0 0; */
  border-right: 1px solid #3862ac;
}

table th{
  text-align: center;
  color:#3862ac;
  background: #eaeaf6;
  border-left: 1px solid #3862ac;
  border-top: 1px solid #3862ac;
  border-bottom: 1px solid #3862ac;
  width: 25%;
  padding: 10px 0;
}

table td{
  text-align: center;
  border-left: 1px solid #3862ac;
  border-bottom: 1px solid #3862ac;
  border-top:none;
  width: 25%;
  padding: 10px 0;
}

table td:last-child{
  border-right: 1px solid #3862ac;
}

table tr:last-child td:first-child {
  /* border-radius: 0 0 0 10px; */
}

table tr:last-child td:last-child {
  /* border-radius: 0 0 10px 0; */
      font-size: 1.4rem;
      font-weight: bold;
}

.result{
  font-size: 1.5rem;
    font-weight: bold;
    color: #3862ac;
    margin-top: 8%;
    margin-bottom: 6%;
    margin-left: 16px;
    border-bottom: 2px solid #3862ac;
    display: inline-block;
    padding-left: 10px;
    padding-right: 20px;
}

.graph_title{
  font-size: 1.5rem;
    font-weight: bold;
    color: #3862ac;
    margin-top: 6%;
    margin-bottom: 12%;
    margin-left: 16px;
    border-bottom: 2px solid #3862ac;
    display: inline-block;
    padding-left: 10px;
    padding-right: 20px;
}

.graph_wrap{
  border: 1px solid #3862ac;
    margin-left: 3%;
    margin-right: 3%;
    padding-top: 3%;
    background-color: #eaeaf6;
}

.result_detail{
  margin: 16px;
    margin-top: 36px;
    font-size: 1.3rem;
    color: #284a88;
}


.twitter_share_wrap{
margin-bottom: 15px;
}

.twitter_share_button{
    text-align:center;
    padding-top:15px;
  }

  .twitter_share_button a{
    font-weight: bold;
    margin: 0 auto;
  display: block;
  width: 60%;
  padding: 0.5em 1em;
  text-decoration: none;
  background: #55afff;
  color: #FFF;
  border-bottom: solid 4px #799dba;
  border-radius: 3px;
  }
  .twitter_share_button a:active {
  /*ボタンを押したとき*/
  -webkit-transform: translateY(4px);
  transform: translateY(4px);/*下に動く*/
  border-bottom: none;/*線を消す*/
  margin-bottom: 4px;
  }

.retry_button a{
font-weight: bold;
    margin: 0 auto;
  display: block;
  width: 60%;
  padding: 0.5em 1em;
  text-decoration: none;
  background: #55afff;
  color: #FFF;
  border-bottom: solid 4px #799dba;
  border-radius: 3px;

}

 .retry_button a:active {
  /*ボタンを押したとき*/
  -webkit-transform: translateY(4px);
  transform: translateY(4px);/*下に動く*/
  border-bottom: none;/*線を消す*/
  margin-bottom: 4px;
  }

#button_color a{
  background: darkgray;
  border-bottom: solid 4px #838383;
}
  .others_title{
      font-size: 1.15em;
        font-weight: bold;
        padding-top: 15px;
        padding-bottom: 10px;
        text-align: center;
    }

    .others_list{
      padding: 0;
      list-style: none;
    }

    .others_list li{
      margin-bottom:15px;
    }

    .others_list li a{
      text-decoration: none;
    }

    .others_list img{
      width: 100%;
      object-fit: cover;
    }

    #others2{

      height: 103.96px;
      object-position: 0% 81%;
    }

    #others3{

      height: 103.96px;
      object-position: 0% 3%;
    }

    .quiz_title{
      background: linear-gradient(45deg,#006ddc, #5dbfff);
          color: white;
          font-weight: bold;
          font-family: sans-serif;
          padding: 10px 8px;
    }

    others img{
      width:100%;
    }
    .others .text{
 position: relative;
     top: -10px;
   width: 100%;
     box-sizing: border-box;
     padding: 5px 10px;
     background-color: rgba(0,0,0,0.8);
     color: #ffffff;
 }

 .others{
   margin-left: 10px;
    margin-right: 10px;
    margin-top: 100px;
 }

 .replay{
   text-align: center;

    margin-bottom: 15px;
 }

 .time_wrap{
   margin: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 40px;
 }

.ads_wrap{
text-align:center;
margin-top:15px;
}


.title{
font-weight:bold !important;
color:#000 !important;
}

.kiyou_content{
  max-width:500px;
  margin: 0 auto;
}




/* サイト内の他アプリへの導線 */
.back_to_menu{
  text-align: center;
  margin-top: 32px;
}
.back_to_menu a{
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid #cccccc;
  border-radius: 30px;
  color: #555555;
  text-decoration: none;
  font-size: 0.85rem;
}

/* =========================================================
   UI改善（2026-08）
   元のブログ埋め込み由来のスタイルを、後ろから上書きして整える。
   ゲームの判定ロジックはDOM構造に依存するため、構造は変えていない。
   ========================================================= */

body{
  background: #f4f5f7;
  color: #2e2e2e;
  line-height: 1.8;
}

.app_container{
  max-width: 640px;
  padding: 0 12px;
}

/* ---- ヘッダー ---- */

.header{
  background: #2b3245;
  color: #fff;
  border: none;
  padding: 22px 12px;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  border-radius: 0 0 14px 14px;
  margin: 0 0 18px;
}

/* ---- スタート画面 ---- */

.start_wrap{
  margin: 0;
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.eyecatch{ margin-bottom: 18px; }
.eyecatch img{ width: 46%; max-width: 200px; }

.attention_wrap{
  background: #f8f9fb;
  border: 1px solid #e6e8ee;
  border-radius: 10px;
  padding: 14px 16px 6px;
  margin-top: 4px;
}

.attention{
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  color: #2b3245;
}

.detail ol{ margin: 0; padding-left: 1.2em; }
.detail ol li{ font-size: 0.84rem; line-height: 1.7; margin-bottom: 8px; }

.start_button_wrap{ margin: 4px 0 20px; }

.start_button{
  padding: 14px 40px;
  background: #f5c94d;
  border: none;
  border-radius: 40px;
  box-shadow: 0 4px 0 #d8ac2c;
  font-size: 1.05rem;
  font-weight: 700;
  color: #3a3a3a;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  letter-spacing: 0.1em;
}

.start_button:active{ transform: translateY(3px); box-shadow: 0 1px 0 #d8ac2c; }

/* ---- 出題画面 ---- */

.main_wrap{
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.time_wrap{ margin-bottom: 18px; text-align: center; }

.timer{
  display: inline-block;
  padding: 4px 18px;
  background: #2b3245;
  color: #fff;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
}

.square{
  width: 130px;
  height: 130px;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.choices_wrap{
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* 元は float + margin で並べていたものをグリッドに置き換える */
.choice{
  width: auto;
  float: none;
  margin: 0;
  padding: 0;
  line-height: 3.4rem;
  font-size: 1.25rem;
  border: 2px solid #d5d8e0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.choice:active{ background: #eef1f7; transform: translateY(2px); }

/* ---- 結果画面 ---- */

.result_wrap{
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.result{
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: #2b3245;
  color: #fff;
  border-radius: 30px;
  display: inline-block;
  padding: 3px 22px;
  margin: 0 auto 16px;
}

.result_wrap > .result{ display: block; width: fit-content; }

.table_wrap{ margin: 0 0 22px; }

.graph_title{
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #2b3245;
  margin: 22px 0 6px;
  padding-top: 18px;
  border-top: 1px solid #ececec;
}

.graph_wrap{ max-width: 400px; margin: 0 auto; }

.graph_status{
  text-align: center;
  font-size: 0.78rem;
  color: #8a8a8a;
  margin-top: 2px;
}

.graph_text{
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.8;
  margin-top: 8px;
}

#percent{ font-weight: 700; color: #f74646; }

.result_detail{
  text-align: center;
  font-size: 0.95rem;
  margin-top: 12px;
}

#dv_span, #level_span{ font-weight: 700; color: #f74646; }

/* ---- PC ---- */

@media screen and (min-width: 640px){
  /* 中身は .kiyou_content（500px）の中にあるが、
     ヘッダーだけは他のページと同じように画面いっぱいに広げる。
     細い帯が画面の真ん中に浮いて見えるのを防ぐため。 */
  .header{ font-size: 1.6rem; padding: 30px 12px; border-radius: 0; }

  .kiyou_content{ max-width: 620px; }

  .start_wrap, .main_wrap, .result_wrap{ padding: 28px 30px; }
  .square{ width: 160px; height: 160px; }
  .choice{ font-size: 1.4rem; line-height: 3.8rem; }
  .detail ol li{ font-size: 0.92rem; }
  .others_list{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .others_list li{ margin-bottom: 0; }
}

/* ヘッダーの背景を紺にしたため、タイトルの文字色も白へ。
   元の .title は color:#000 !important を持っているので、
   同じく !important で上書きする。 */
.header .title{
  color: #ffffff !important;
}
