﻿@import url("common.css?3");

body{
-webkit-text-size-adjust: 100%;
}
.entry-content, .entry-summary {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.entry .entry-content > *, .entry .entry-summary > * {
    margin: 0 !important;
    max-width: 100%;
}

.header{
  border-radius: 5px;
  background:linear-gradient(#9d9,#6c6);
  box-shadow:0 2px 8px rgba(30,30,80,.3);
  left:0;
  line-height:1;
  position:fixed;
  top:0;
  height:60px;
  width:100% !important;
  max-width:100% !important;
  margin: 0 !important;
  z-index:24;
  padding:10px;
}

.wpcf7{
 max-width:100% !important;
 padding: 0 !important;
}

.wpcf7-form{
 max-width:100% !important;
 padding: 0 !important;
}

.flex{
  display:flex;
  margin-left: 3%;
}

#eventInfo{
    display:inline-block;
    width:50%;
    vertical-align: middle !important;
    font-size:3vmin;
}
#teamInfo{
    display:inline-block;
    width:40%;
    vertical-align: middle !important;
    font-size:3vmin;
}

#sendMessage{
    margin: 32px 0 !important;
}

#initArea{
    position: absolute;
    width: 100%;
    top: 60px;
    text-align: center;
    cursor: pointer;
    margin: 32px 0 !important;
}

#onYourMarks{
    display: inline-block;
    width: 49%;
    max-width: 300px;
    max-height: 300px;
    line-height: 300px;
    vertical-align: middle;
    font-size: 5vmin;
    margin: 2px;
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
    text-decoration: none !important;
    background: #FDD;
    color: #F00;
    box-shadow: 0 2px 8px rgba(40,40,40,.5);
}

#dns{
    display:inline-block;
    width:49%;
    max-width:100px;
    max-height: 100px;
    line-height: 100px;
    vertical-align: middle;
    font-size:4vmin;
    margin:2px;
    font-weight:bold;
    border-radius: 50%;
    text-align:center;
    text-decoration: none !important;
    background: #DDF;
    color:#00F;
    box-shadow: 0 1px 4px rgba(20,20,40,.2);
}

#workArea{
    width: 100%;
    position: absolute;
    top: 60px;
    padding-top: 10px;
}

.tabs {
  display: flex;
  gap: 2px;
  margin-left: 3%;
}

.tabs .tab {
  width:90px;
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-bottom: none;
  background: #bbddff;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  font-weight: 600;
  color:#fff;
}

.tabs .tab.active {
  background: #0073aa;
  border-color: #888;
  box-shadow: inset 0 0 0 #fff, 0 -1px 0 #888;
  color: #fff;
}

#inputList, #explanationList {
  border: 1px solid #888;
  border-radius: 0 6px 6px 6px;
  padding: 4px;
  background: #fff;
  width: 94%;
}

.explanation-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.subtract1-clicked a::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 48px;
  height: 48px;
  border: 3px solid #99bbff;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.subtract2-clicked a::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 48px;
  height: 48px;
  border: 3px solid #0066ff;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
#backExplanation {
  float: right;
  margin-top: -60px;
}
#visitList
{
  display:inline-block;
  vertical-align: top;
  width: 45%;
  font-size: 15px;
  margin-bottom: 100px;
}

.balloon_hh{
  font-size:5vmin;
  border-radius: 5%;
  line-height: 1;
  position: absolute;
  padding: 10px;
  top: 60px;
  width: 80%;
  left: 8%;
  color:#0073aa;
  background-color: #eeeeff;
  box-shadow: 0px 0px 10px 0px #a7a7a7;
}

.balloon_hh::before{
  content: '';
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  left: 20px;
  top: -15px;
  border-right: 15px solid transparent;
  border-bottom: 15px solid #eeeeff;
  border-left: 15px solid transparent;
}

.balloon_point{
  margin-left: 3%;
  font-size: 5vmin;
  border-radius: 5%;
  line-height: 0.9;
  padding: 10px;
  width: 94%;
  color: #0073aa;
  background-color: #eeeeff;
  box-shadow: 0px 0px 10px 0px #a7a7a7;
}

.balloon_sort{
  font-size:5vmin;
  border-radius: 5%;
  line-height: 1;
  position: absolute;
  padding: 10px;
  bottom: 400px;
  width: 40%;
  left: 4%;
  color:#0073aa;
  background-color: #eeeeff;
  box-shadow: 0px 0px 10px 0px #a7a7a7;
}

.balloon_sort::before{
  content: '';
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  left: 20px;
  top: -15px;
  border-right: 15px solid transparent;
  border-bottom: 15px solid #eeeeff;
  border-left: 15px solid transparent;
}



#content tr th
{
    padding:5px;
    border: 1px solid #979797;
    font-size:3vmin;
}

#content tr td
{
    padding:5px; 
    border: 1px solid #979797;
    text-align: left;
    font-size:3vwin;
}

#sortdata{
    cursor: pointer
}


#sortdata tr th
{
    padding: 1px;
    border: 1px solid #979797;
    font-size: 4vmin;
    border-radius: 5%;
    display: inline-block;
    height: 55px;
    line-height: 50px;
    width: 25%;
    background: #FDD;
    color: #F00;
    box-shadow: 0 1px 4px rgba(20,20,40,.2);
}

#sortdata tr td
{
    padding: 1px;
    height: 55px;
    line-height: 50px;
    border: 1px solid #979797;
    text-align: left;
    vertical-align: middle !important;
    font-size: 3vmin;
    width: 75%;
    border-radius: 5%;
    display: inline-block;
    background: #FDD;
    overflow:hidden;
    box-shadow: 0 1px 4px rgba(20,20,40,.2);
}

#sortdata tr td p
{
    margin-top: -15px;
    padding :2px;
    line-height: 15px;
    text-align: right;
    vertical-align: middle !important;
    color:#F00;
    background: #FFF;
    width:max-content;
    margin-left: auto;
}


#score{
    width:50%;
    margin-bottom:50px;
}
#score tr th
{
    background: #efe;
    padding:5px;
    border-top: 1px solid #979797;
    border-right: 1px solid #979797;
    border-left: 1px solid #979797;
    text-align:left;
    font-size:4vw;
}
#score tr th.borderTopNone
{
    border-top: none !important;
}
#score tr th.borderBottomNone
{
    border-bottom: none !important;
}
#score tr th.borderTopNone.warning
{
    background: #fdd !important;
    color: #f00 !important;
}
#score tr th.borderBottomNone.warning
{
    background: #fdd !important;
    color: #f00 !important;
}
#score tr th.borderBottomNone.warning
{
    border-bottom: none !important;
}
#score tr td
{
    padding:5px; 
    border: 1px solid #979797;
    text-align: right;
    font-size:5vw;
}

#pointTotal{
    position: fixed;
    top: 5px;
    right: 8px;
    z-index: 99;
}

#send0 input[type="submit"]
{
position: fixed;
    right: 5px;
    top: 25px;
    z-index: 99;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    padding: 3px;
}

.noDisp
{
    display:none !important;
}

.results:hover
{
  cursor:pointer;color:#FF6666
}

.expl a {
    color:#005177;
}

.unvis a {
    position:relative;
    margin:2px;
    font-size:x-large;
    font-weight:bold;
    display: inline-block;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: #DDF;
    text-align:center;
    vertical-align: middle;
    line-height: 48px;
    text-decoration: none !important;
    z-index: 0;
    box-shadow: 0 1px 4px rgba(20,20,40,.2);
}
.unvis a:hover {        /*「after要素」のマウスオーバー（カラーを合わせる） */  
    background: #BBE;
    cursor: pointer
}
.unvis p {
    display:none;
    position: absolute;
    top: -35px;
    left: 5px;
    color: #FFF;
    font-size: 35px;
    z-index: -1;
}
.unvis img {
    height: auto;
    max-width: 100%;
    top: 3px;
    position: relative;
    right: 2px;
}
.visit a span{
    opacity:60%;
}
.visit a {
    position:relative;
    margin:2px;
    font-size:x-large;
    font-weight:bold;
    display: inline-block;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: #FDD;
    color:#F00;
    text-align:center;
    vertical-align: middle;
    line-height: 48px;
    text-decoration: none !important;
    z-index: 0;
    box-shadow: 0 1px 4px rgba(20,20,40,.2);
}
.visit a:hover {        /*「after要素」のマウスオーバー（カラーを合わせる） */  
    background: #EBB;
    cursor: pointer
}
.visit p {
    position: absolute;
    top: -35px;
    left: 5px;
    color: #FFF;
    font-size: 35px;
    z-index: -1;
}
.visit img {
    height: auto;
    max-width: 100%;
    top: 3px;
    position: relative;
    right: 2px;
}
#finishInput {
    text-align:center;
}
#finishInput span{
    margin :0 0 0 10px;
    display:inline-block;
}

#finishInput select{
    font-size:5vmin;
}

#finishTitle{
    font-size:5vmin;
}


#DSQ{
    opacity:0.9;
    position: fixed;
    bottom: 180px;
    right: 5px;
    z-index: 99;
}
#DNS{
    opacity:0.9;
    position: fixed;
    bottom: 220px;
    right: 5px;
    z-index: 99;
}
#result{
    opacity:0.7;
    position:fixed;
    right:5px;
    bottom:130px;
    cursor: pointer;
    z-index: 99;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    padding: 8px;
    transition: background 150ms ease-in-out;
    background: #0073aa;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    color: #fff;
    outline: none;
    text-decoration: none;
    vertical-align: middle;
}

input[type=checkbox] {
  display: none;
}

.checkbox {
  box-sizing: border-box;
  -webkit-transition: background-color 0.2s linear;
  transition: background-color 0.2s linear;
  position: relative;
  padding: 1px 5px 1px 40px;
  border-radius: 8px;
  background-color: #efe;
  vertical-align: middle;
  cursor: pointer;
}
.checkbox:hover {
  background-color: #fee;
}
.checkbox:hover:after {
  border-color: #eaa;
}
.checkbox:after {
  -webkit-transition: border-color 0.2s linear;
  transition: border-color 0.2s linear;
  position: absolute;
  top: 50%;
  left: 15px;
  display: block;
  margin-top: -10px;
  width: 16px;
  height: 16px;
  border: 2px solid #afa;
  border-radius: 6px;
  content: '';
}

.checkbox:before {
  -webkit-transition: opacity 0.2s linear;
  transition: opacity 0.2s linear;
  position: absolute;
  top: 20%;
  left: 20px;
  display: block;
  margin-top: -7px;
  width: 11px;
  height: 20px;
  border-right: 4px solid #e22;
  border-bottom: 4px solid #e22;
  content: '';
  opacity: 0;
  z-index: 99;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
input[type=checkbox]:checked + .checkbox:before {
  opacity: 1;
}

#checkArea .checkbox {
  opacity: 0.8;
  box-sizing: border-box;
  -webkit-transition: background-color 0.2s linear;
  transition: background-color 0.2s linear;
  position: relative;
  padding: 1px 5px 1px 40px;
  border-radius: 8px;
  background-color: #0073aa;
  vertical-align: middle;
  cursor: pointer;
  font-weight: 700;
  color:#ffa;
}
#checkArea .checkbox:hover {
  background-color: #2295cc;
  color:#ffa;
}
#checkArea .checkbox:hover:after {
  border-color: #ffa;
  color:#ffa
}
#checkArea .checkbox:after {
  -webkit-transition: border-color 0.2s linear;
  transition: border-color 0.2s linear;
  position: absolute;
  top: 50%;
  left: 15px;
  display: block;
  margin-top: -10px;
  width: 16px;
  height: 16px;
  border: 2px solid #ffa;
  border-radius: 6px;
  content: '';
}

#checkArea .checkbox:before {
  -webkit-transition: opacity 0.2s linear;
  transition: opacity 0.2s linear;
  position: absolute;
  top: 20%;
  left: 20px;
  display: block;
  margin-top: -7px;
  width: 11px;
  height: 20px;
  border-right: 4px solid #f00;
  border-bottom: 4px solid #f00;
  content: '';
  opacity: 0;
  z-index: 99;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

#checkArea input[type=checkbox]:checked + .checkbox:before {
  opacity: 1;
}


#checkArea{
    position: fixed;
    top: 70px;
    right: 5px;
    z-index: 9999;
}

#upArea{
    opacity:0.7;
    position:fixed;
    bottom:130px;
    left:3px;
    cursor: pointer;
    z-index: 99;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
    padding: 3px 8px 3px 8px;
    transition: background 150ms ease-in-out;
    background: #0073aa;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    color: #fff;
    outline: none;
    text-decoration: none;
    vertical-align: middle;
}
#downArea{
    opacity:0.7;
    position:fixed;
    top: 65px;
    left: 3px;
    cursor: pointer;
    z-index: 99;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
    padding: 3px 8px 3px 8px;
    transition: background 150ms ease-in-out;
    background: #0073aa;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    color: #fff;
    outline: none;
    text-decoration: none;
    vertical-align: middle;
}
#backArea{
    opacity: 0.7;
    position: fixed;
    top: 35px;
    left: 0;
    cursor: pointer;
    z-index: 99;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    padding: 0px;
    transition: background 150ms ease-in-out;
    background: #0073aa;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    color: #fff;
    outline: none;
    text-decoration: none;
    vertical-align: middle;
}

.accepted{
    z-index: 100;
    position: fixed;
    text-align: center;
    width: 90%;
    opacity: 70%;
    bottom: 40%;
    left: 5%;
    font-size: 8vmin;
    font-weight: 700;
    line-height: 1.2;
    padding: 8px;
    background: #0073aa;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    color: #fff;
    outline: none;
    text-decoration: none;
    vertical-align: middle;
}
#punchButton{
  opacity: 0.7;
  position: fixed;
  bottom: 0px;
  margin: 20px 0 20px 2px !important;
  letter-spacing: 0.1em;
  cursor: pointer;
  z-index: 99;
  width: 100%;
  max-width: 768px;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.2;
  padding: 25px 0 25px 10px;
  transition: background 150ms ease-in-out;
  background: #0073aa;
  border: none;
  border-radius: 10px;
  box-sizing: border-box;
  color: #fff;
  outline: none;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
}

.ng{
  z-index: 100;
  text-align: center;
  opacity: 70%;
  font-size: 3.0em;
  font-weight: 700;
  line-height: 1.0;
  padding: 0px !important;
  background: #0073aa;
  border: none;
  border-radius: 30px;
  box-sizing: border-box;
  color: #f00;
  outline: none;
  text-decoration: none;
  vertical-align: middle;
  cursor:pointer;
}
.restart{
  z-index: 100;
  text-align: center;
  opacity: 70%;
  font-size: 0.8em;
  font-weight: 700;
  line-height: 1.0;
  padding: 8px;
  background: #0073aa;
  border: none;
  border-radius: 30px;
  box-sizing: border-box;
  color: #fff;
  outline: none;
  text-decoration: none;
  vertical-align: middle;
  cursor:pointer;
}
.minlater{
  margin-left:20px;
  z-index: 100;
  text-align: center;
  opacity: 70%;
  font-size: 0.8em;
  font-weight: 700;
  line-height: 1.0;
  padding: 8px;
  background: #0073aa;
  border: none;
  border-radius: 30px;
  box-sizing: border-box;
  color: #fff;
  outline: none;
  text-decoration: none;
  vertical-align: text-top;
  cursor:pointer;
}
.startCancel{
  z-index: 100;
  text-align: center;
  opacity: 70%;
  font-size: 0.8em;
  font-weight: 700;
  line-height: 1.0;
  padding: 8px;
  background: #0073aa;
  border: none;
  border-radius: 30px;
  box-sizing: border-box;
  color: #fff;
  outline: none;
  text-decoration: none;
  vertical-align: middle;
  cursor:pointer;
}

#clockArea{
  margin: 0;
  background:#eee;
  padding-top:5px;
  box-shadow:0 2px 8px rgba(30,30,80,.3);
  left:0;
  font-size:15vw;
  line-height: 1;
  width:100%;
  height:auto;
  background-size:80px;
  background-position:right;
  background-repeat:no-repeat;
  background-color:rgba(255,255,255,0.8);
  background-blend-mode:lighten;
}

#clockArea dt{
 width:100% !important;
 max-width:750px !important;
 max-height:100px  !important;
}

#elapsedTime.noSelectedButton,#currentTime.noSelectedButton,#finishButton.noSelectedButton{
  z-index: 100;
  display: inline-block; /* ボタンのように見せる */
  padding: 5px 0 5px 5px; /* 内側の余白を調整 */
  font-size: 18px; /* フォントサイズを調整 */
  font-weight: bold; /* 太字にする */
  text-align: center; /* テキストを中央揃え */
  color: #aaa; /* テキストの色を白に */
  background: linear-gradient(to bottom, #007faa, #00538a); /* グラデーション背景 */
  border: 2px solid #005f8a; /* ボーダーを追加 */
  border-radius: 5px; /* 角を丸くする */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* ボタンに影を付ける */
  cursor: pointer; /* ホバー時にポインターを表示 */
  transition: all 0.3s ease; /* ホバー時のアニメーション */
  margin :0 0 5px 5px;
}

#elapsedTime.SelectedButton,#currentTime.SelectedButton,#finishButton.SelectedButton{
  z-index: 100;
  display: inline-block; /* ボタンのように見せる */
  padding: 5px 0 5px 5px; /* 内側の余白を調整 */
  font-size: 18px; /* フォントサイズを調整 */
  font-weight: bold; /* 太字にする */
  text-align: center; /* テキストを中央揃え */
  color: #fff; /* テキストの色を白に */
  background: linear-gradient(to bottom, #003f8a, #00235a); /* グラデーション背景 */
  border: 2px solid #005f8a; /* ボーダーを追加 */
  border-radius: 5px; /* 角を丸くする */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* ボタンに影を付ける */
  cursor: pointer; /* ホバー時にポインターを表示 */
  transition: all 0.3s ease; /* ホバー時のアニメーション */
  margin :0 0 5px 5px;
}
#elapsedTime:hover,#currentTime:hover,#finishButton:hover {
  background: linear-gradient(to bottom, #006f9a, #00336a); /* ホバー時の背景色 */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3); /* ホバー時の影を強調 */
  transform: translateY(-2px); /* ホバー時に少し浮かせる */
}
#finishTime{
  font-size: 70px;
  margin:5px 0 0 0;
}
#finishTime span{
  display: inline-block;
  width:50px;
}
#finishHH{
  width:100px !important;
}


@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
#finishButton.SoonButton.noSelectedButton {
  animation: blink 1s infinite; /* 点滅アニメーションを適用 */
  background: linear-gradient(to bottom, #ff0000, #cc0000); /* 背景色を赤系に変更 */
  color: #fff; /* テキスト色を白に */
  border: 2px solid #aa0000; /* ボーダー色を変更 */
  box-shadow: 0 4px 6px rgba(255, 0, 0, 0.5); /* 赤系の影を追加 */
}

#numberButtonsHour{
  display: block;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0;
  position: fixed;
  top:220px;
  left: 50%; /* 左右中央に配置 */
  transform: translateX(-50%); /* 中央揃え */
  z-index: 200;
  background: #FFF;
  opacity: 90%;
  height:auto;
  width: 300px;
  text-align:left;
  font-size: 2em;
  transition: opacity 0.5s ease; /* フェードアニメーション */
}
#numberButtonsMinute,#numberButtonsSecond{
  display: block;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0px;
  position: fixed;
  top:180px;
  left: 50%; /* 左右中央に配置 */
  transform: translateX(-50%); /* 中央揃え */
  height:auto;
  z-index: 200;
  background: #FFF;
  opacity: 90%;
  width: 350px;
  font-size:1.6em;
  transition: opacity 0.5s ease; /* フェードアニメーション */
}

#numberButtonsMinute10,#numberButtonsSecond10,#numberButtonsMinute01,#numberButtonsSecond01{
  display: block;
  flex-wrap: wrap;
  top:30px;
  gap: 10px;
  justify-content: center;
  margin: 5px 20px;
  position: absolute;
  padding: 10px;
  right: 0px;
  height:375px;
  z-index: 200;
  background: #FFF;
  opacity: 90%;
  width: 300px;
  text-align: center;
}

.numberButton{
  margin: 5px 5px 0 0;
  height: 70px;
  width: 70px;
  font-size: 45px;
  padding: 10px 5px 10px 5px;
  font-weight: bold;
  text-align: center;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.numberButton:hover {
  background-color: #005f8a; /* ホバー時の背景色 */
  transform: scale(1.05); /* ホバー時に少し拡大 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* ホバー時の影を追加 */
}

.dummyButton{
  margin: 5px 5px 0 0;
  height: 70px;
  width: 70px;
  font-size: 40px;
  padding: 5px 10px 10px 10px;
  font-weight: bold;
  text-align: center;
  background-color: #5599a1;
  color: #CCC;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

@keyframes blinkRed {
  0%, 100% { color: red; }
  50% { color: white; }
}

.blink-red {
  animation: blinkRed 0.5s step-end 4; /* 0.5秒×4回＝2秒点滅 */
}

#arrowButtons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* ボタン間のスペース */
  margin: 20px 0;
  position:fixed;
  top:165px;
  z-index:200;
  width:100%;
  max-width:768px;
}

#numberButtonTitle {
  font-size: 20px; /* フォントサイズを調整 */
  font-weight: bold;
  text-align: center;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  height: 30px;
  width:65%;
  margin: 0 auto; /* 中央揃え */
}
.arrowButton {
  width: 50px;
  height: 50px;
  background-color: #0073aa; /* ボタンの背景色 */
  border: none;
  border-radius: 50%; /* 丸いボタンにする */
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* ボタンに影を追加 */
  transition: all 0.3s ease; /* ホバー時のアニメーション */
}

.arrowButton::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-top: 3px solid white; /* 矢印の線 */
  border-right: 3px solid white; /* 矢印の線 */
  transform: rotate(45deg); /* 矢印の向きを調整 */
}

#prevButton {
  position:absolute;
  left:5px;
}
#nextButton {
  position:absolute;
  right:5px;
}
#prevButton::before {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-135deg); /* 左向き矢印 */
}

#nextButton::before {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg); /* 右向き矢印 */
}

.arrowButton:hover {
  background-color: #005f8a; /* ホバー時の背景色 */
  transform: scale(1.1); /* ホバー時に少し拡大 */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3); /* ホバー時の影を強調 */
}

.arrowButton:active {
  transform: scale(0.9); /* クリック時に縮小 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* クリック時の影を弱める */
}
#finishPunchButton{
  opacity: 0.9;
  margin: 0 0 5px 2px !important;
  letter-spacing: 0.1em;
  cursor: pointer;
  z-index: 99;
  height:105px;
  width: 100%;
  max-width: 768px;
  font-weight: 700;
  line-height: 0.9;
  padding: 5px 0;
  background: #0073aa;
  border: none;
  border-radius: 10px;
  box-sizing: border-box;
  color: #fff;
  outline: none;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
}

.dispTop{
  position: fixed;
  transition: top 2.5s ease, bottom 2.5s ease; /* topとbottomの変更をアニメーション */
  top: 65px;
  bottom: auto; /* bottomを無効化 */
}

.dispBottom{
  position: fixed;
  transition: top 2.5s ease, bottom 2.5s ease; /* topとbottomの変更をアニメーション */
  top: auto; /* topを無効化 */  
  bottom: 0px;
  padding: 15px 0 5px 0 !important;
  height:120px !important
}

#finishPunchMessage{
  z-index: 200;
  display: inline-block;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  color: #FFF;
  left: 15px;
  position: fixed;
}
.hidden{
  visibility: hidden  !important;
}
.punchMessageTop{
  top: 80px;
}
.punchMessageBottom{
  bottom:85px;
}

#scanQR{
  position: fixed;
  bottom: 95px;
  left: -5px;
  z-index: 1000;
}
/* モーダルの背景 */
#qrModal {
  position: absolute;
  top: 65px;
}

/* モーダルのコンテンツ */
.modal-content {
  display: block;
    margin: 0px 35px 5px 5px;
    background: #e6fffb;
    border: 3px solid #0098fb;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(255, 152, 0, 0.2);
    padding: 3px 3px 3px 3px;
    font-size: 1.0em;
    font-weight: bold;
    color: #0054d3;
    text-align: center;
    letter-spacing: 1px;
}
/* QRコードコンテナ */
#qrCodeContainer {
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
}
#qrCodeContainer video {
  width: 100vw;
  max-width: 100vw;
  height:100vh;
  object-fit: cover; /* ビデオのアスペクト比を維持 */
  display: block;
  margin: 0 0 -90px 0;
  background: #000;
}
#qrScanGuide {
  position: absolute;
  top: 40%; left: 50%;
  width: 70vw;  /* スマホ画面の70%幅 */
  height: 70vw; /* 正方形 */
  max-width: 320px;
  max-height: 320px;
  transform: translate(-50%, -50%);
  border: 4px solid rgba(255,255,255,0.9); /* 明るい白枠 */
  box-shadow: 0 0 30px 10px rgba(255,255,255,0.3);
  border-radius: 16px;
  pointer-events: none; /* 枠がタップを邪魔しない */
  z-index: 10;
}

/* 周囲を暗くするオーバーレイ */
#qrCodeContainer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 5;
  pointer-events: none;
}

#qrScanGuide {
  background: none;
}

#finishInputbyNumber {
    position: fixed;
    bottom:0px;
    right: 0px;
    z-index: 1000;
    padding: 5px 10px;
    font-size: 1.2em;
}

#finishInputbyNumber button{
    padding: 5px 10px !important;
}

/* 閉じるボタン */
.close {
  color: #aaa;
  position: absolute;
  top: -5px;
  right:5px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.tabs button.active { font-weight: bold; border-bottom: 2px solid; }

@media screen and (max-width: 374px) {
  body {
      font-size: 90%; /* 全体のフォントサイズを調整 */
  }

  #onYourMarks, #dns {
      width: 80%; /* ボタンの横幅を縮小 */
      max-width: 200px; /* 最大幅を制限 */
      max-height: 200px; /* 最大高さを制限 */
      line-height: 200px; /* ボタン内のテキストを中央揃え */
      font-size: 4vmin; /* フォントサイズを縮小 */
  }

  #initArea {
      top: 50px; /* 上部の位置を調整 */
  }

  #arrowButtons {
      gap: 10px; /* ボタン間のスペースを縮小 */
      top: 135px; /* 下部の位置を調整 */
  }

  .arrowButton {
      width: 40px; /* ボタンのサイズを縮小 */
      height: 40px;
  }

  #elapsedTime, #currentTime, #finishButton {
      font-size: 14px !important; /* フォントサイズを縮小 */
      letter-spacing: 3px;  /* 文字間隔を調整 */
  }
  #finishTime span{
    width:40px;
  }
    
  #finishHH{
    width:90px !important;
  }

  #numberButtonsHour {
      width: 220px; /* 横幅を縮小 */
      font-size: 40px; /* フォントサイズを縮小 */
      top:190px; /* 上部の位置を調整 */
  }
  #numberButtonsMinute, #numberButtonsSecond {
      width: 85%; /* 横幅を縮小 */
      font-size: 1.5em; /* フォントサイズを縮小 */
  }

  #numberButtonsMinute, #numberButtonsSecond {
    top: 155px; /* 上部の位置を調整 */
  }

   #numberButtonsMinute10, #numberButtonsSecond10, #numberButtonsMinute01, #numberButtonsSecond01 {
      width: 240px; /* 横幅を縮小 */
      height: 250px; /* 高さを縮小 */
      font-size:60%; /* フォントサイズを縮小 */
      top: 30px; /* 上部の位置を調整 */
  }

  #punchButton, #finishPunchButton {
      line-height: 0.7; /* 行間を調整 */
      height: 80px; /* ボタンの高さを縮小 */
  }
 
  .numberButton {
    font-size: 40px; /* フォントサイズを縮小 */
    height: 50px; /* ボタンの高さを縮小 */
    margin: 3px 3px 0 0 !important;
  }
  .dummyButton {
    font-size: 40px; /* フォントサイズを縮小 */
    height: 50px; /* ボタンの高さを縮小 */
    margin: 3px 3px 0 0 !important;
  }
  

  #checkArea .checkbox {
    font-size: 4vmin; /* フォントサイズを縮小 */
  }

  #clockArea {
    font-size: 12vw; /* 時計のフォントサイズを縮小 */
  }

  #finishPunchMessage {
    font-size:12px;
  }
  .punchMessageTop{
    position: fixed;
    transition: top 2.5s ease, bottom 2.5s ease; /* topとbottomの変更をアニメーション */
    top: 75px;
  }
  .punchMessageBottom{
    position: fixed;
    transition: top 2.5s ease, bottom 2.5s ease; /* topとbottomの変更をアニメーション */
    bottom:60px;
  }
  #finishTime {
    font-size :55px; /* フォントサイズを縮小 */
    margin: 5px 0 0 0 !important;
  }
  .dispBottom{
    height:90px !important
  }
  #scanQR{
    position: fixed;
    bottom: 65px;
    left: -5px;
    z-index: 1000;
    transform: scale(0.8); /* ボタンのサイズを縮小 */
  }
}
@media screen and (min-width: 769px) {
  #numberButtonsMinute, #numberButtonsSecond {
      left: 380px;
  }
  #numberButtonsHour {
      left: 390px;  
  }
}