.buttonarea *,
  .buttonarea *:before,
  .buttonarea *:after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

html .buttonarea {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 62.5%;
}

  .buttonarea .btn,
  .buttonarea a.btn,
  .buttonarea button.btn {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 4rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;
  border-radius: 0.5rem;
}
    .buttonarea div  .select2-container {
        display:inline-grid;

    }
    
  .buttonarea .select1-container {
      text-align:center;    }

  .buttonarea a.btn-emergency-real {
  position: relative;

  display: block;

  width: 200px;
  height: 130px;
  margin: 0 auto;
}

  .buttonarea a.btn-emergency-real:hover .btn-emergency-real-top {
  top: 10px;

  height: 50px;
}

  .buttonarea a.btn-emergency-real:active .btn-emergency-real-top {
  top: 20px;

  height: 40px;
}

.buttonarea .btn-emergency-real-top {
  position: absolute;
  top: 0;
  left: 20px;

  width: 160px;
  height: 60px;
  margin-top: 30px;

  -webkit-transition: all 0.3s;

  transition: all 0.3s;

  border-radius: 0 0 50% 50%;
  background-image: -webkit-gradient(
    linear,
    right top,
    left top,
    from(#003c7c),
    to(#007BFF)
  );
  background-image: -webkit-linear-gradient(right, #003c7c 0%, #007BFF 100%);
  background-image: linear-gradient(to left, #003c7c 0%, #007BFF 100%);
  -webkit-box-shadow: inset 0 -1px 10px 0 rgba(0, 0, 0, 0.9),
    0 5px 5px 0 rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 -1px 10px 0 rgba(0, 0, 0, 0.9),
    0 5px 5px 0 rgba(0, 0, 0, 0.2);
}

.buttonarea .btn-emergency-real-top:before {
  position: absolute;
  top: -30px;
  left: 0;

  width: 160px;
  height: 60px;

  content: "";

  border-radius: 80px / 30px;
  background-image: -webkit-gradient(
    linear,
    left bottom,
    left top,
    from(#003366),
    to(#0088cc)
  );
  background-image: -webkit-linear-gradient(bottom, #003366 0%, #0088cc 100%);
  background-image: linear-gradient(to top, #003366 0%, #0088cc 100%);
  -webkit-box-shadow: 0 10px 28px 2px rgba(0, 0, 0, 0.2),
    inset 0 5px 10px 0 rgba(0, 0, 0, 0.2),
    inset 0 2px 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 10px 5px rgba(0, 136, 204, 0.6),
    inset 5px 0 1px 1px rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 28px 2px rgba(0, 0, 0, 0.2),
    inset 0 5px 10px 0 rgba(0, 0, 0, 0.2),
    inset 0 2px 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 10px 5px rgba(0, 136, 204, 0.6),
    inset 5px 0 1px 1px rgba(255, 255, 255, 0.3);
}


  .buttonarea .btn-emergency-real-top span {
  font-size: 38px;
  font-weight: bold;

  position: absolute;
  top: -24px;
  left: 0;

  width: 100%;

  -webkit-transform: scaleY(0.75);

  transform: scaleY(0.75);
  text-align: center;

  color: #dadae4;
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.5),
    1px 1px 5px rgba(255, 255, 255, 0.3);
}

  .buttonarea .btn-emergency-real-bottom {
  position: absolute;
  top: 38px;
  left: 0;

  width: 200px;
  height: 80px;

  border-radius: 100px / 40px;
  background-image: -webkit-gradient(
    linear,
    left top,
    right top,
    from(#f2f2f2),
    color-stop(48%, #b4b4b4),
    to(#767676)
  );
  background-image: -webkit-linear-gradient(
    left,
    #f2f2f2 0%,
    #b4b4b4 48%,
    #767676 100%
  );
background-image: linear-gradient(
    to right,
    #f2f2f2 0%,
    #b4b4b4 48%,
    #767676 100%
  );
  -webkit-box-shadow: 0 8px 0 #c4cacc, inset 1px -1px 10px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 0 #c4cacc, inset 1px -1px 10px 0 rgba(0, 0, 0, 0.2);
}
    
    .groupkantei{
        display: none;
    }
    
    #submit_s1{
        height:1px;
        width:1px;
        visibility: hidden;
    }
    
    .buttonarea{
        text-align: center;
    }
    
    
    @keyframes highlight {
  0% {background-color: transparent;}
  50% {background-color: yellow;}
  100% {background-color: transparent;}
}

.animate-update {
  animation: highlight 2s linear;
}
    #ranking td{
        text-align:right;
        padding-left:3px;
    }
    #ranking th{
        text-align: justify-all;
        text-align: right;
        padding-left:3px;
    }
     
.gold {
    background-image: url('/img/crown1.png');
}

.silver {
    background-image: url('/img/crown2.png');
}
.bronze {
    background-image: url('/img/crown3.png');
}


    #ranking td span{
    margin-bottom: -3px;
    margin-left: 5px;
    display:  inline-block;
    width:16px;    
    height:16px;
    background-repeat: no-repeat;
    background-position:   center; 
    background-size: 16px;
    }
    
    
     



.switch-container {
    position: absolute;
    top: 10px;
    right: 0;
    padding: 3px; 
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.switch-field {
    display: flex;
    overflow: hidden;
    margin: 8px 0;
    background-color: #e4e4e4;
    border-radius: 2px;
}

.switch-option {
    flex: 1;
    padding: 6px 12px;
    text-align: center;
    color: #999;
    font-size: 18px;
    font-weight: 100;
    line-height: 1;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.switch-option:first-child {
    border-radius: 3px 0 0 3px;
}

.switch-option:last-child {
    border-radius: 0 3px 3px 0;
}

.switch-option:hover {
    background-color: #d3d3d3;
}

.switch-option.active {
    color: white;
    background-color: #337ab7;
}


    .btt_yellow, .btt_green, .btt_blue, .btt_red, .btt_purple, .btt_gray, .btt_pink {
    display: inline-block;
    width: 232px;
    height: 46px;
    line-height: 46px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: calc(2vw + 10px); /* ここを変更 */
    transition: background-color 0.3s;
    white-space: nowrap; /* 改行を避ける */
    overflow: hidden;  /* もし文字がボタンの大きさを超えたら、それを切り取る */
}

.btt_yellow {
    background-color: #FFD740;
}

.btt_green {
    background-color: #689F38;
}

.btt_blue {
    background-color: #29B6F6;
}

.btt_pink {
    background-color:#E746E7;
}
.btt_red {
    background-color: #FF5252;
}

.btt_purple {
    background-color: #7E57C2;
}
.btt_gray {
    background-color: #999;
}

.btt_yellow:hover, .btt_green:hover, .btt_blue:hover, .btt_red:hover, .btt_purple:hover {
    filter: brightness(0.9);
}

    .caution{
        color:#888;
        font-size: 14px;
    }
