@charset "utf-8";

:root {
}

body {
  background: #FDD35C;
  color: #222;
  line-height: 1;
}

img {
  max-width: 100%;
}

.hide {
  display: none !important;
}

.inter {
  font-size: calc(23000vw / 1440);
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
.inknut-antiqua {
  font-size: calc(1800vw / 1440);
  font-family: "Inknut Antiqua", serif;
  font-weight: 600;
  font-style: normal;
}
/* デザインよりも横長になったとき */
@media (min-aspect-ratio: 1440/1024) {
  .inter {
    font-size: calc(23000vh / 1024);
  }
  .inknut-antiqua {
    font-size: calc(1800vh / 1024);
  }
}




.wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-image: url("../img/deco_l.png"), url("../img/deco_r.png");
  background-repeat: no-repeat;
  background-position: left bottom, right top calc(13400vw / 1440);
  background-size: auto calc(calc(100% - calc(13400vw / 1440)) * 0.95);
}

header {
  aspect-ratio: 1440 / 134;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
}
header h1 {
  width: calc(113500vw / 1440);
}
header img {
}
@media (min-aspect-ratio: 1440/1024) {
  header {
    aspect-ratio: auto;
    height: calc(13400vh / 1024);
  }
  header h1 {
    width: auto;
    height: calc(5400vh / 1024);
  }
  header img {
    height: 100%;
  }
}

.wrapper .content {
  position: relative;
  height: calc(100vh - calc(13400vw / 1440));
}
.wrapper .inner {
  display: grid;
  grid-template-areas:
    "kumi guuki"
    "ban  ban";
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: calc(9000vh / 1024) calc(12000vw / 1440);
  aspect-ratio: 1440 / 890;
  width: fit-content;
  max-height: 100%;
  margin-inline: auto;
  padding-left: calc(13600vw / 1440);
  padding-top: calc(8000vh / 1024);
  padding-bottom: calc(8000vh / 1024);
}
@media (min-aspect-ratio: 1440/1024) {
  .wrapper .content {
    position: relative;
    height: calc(100vh - calc(13400vh / 1440));
  }
  .wrapper .inner {
    gap: calc(9000vh / 1024) calc(12000vh / 1024);
    padding-left: calc(13600vh / 1024);
  }
}
#kumi {
  grid-area: kumi;
}
#guuki {
  grid-area: guuki;
}
#ban {
  grid-area: ban;
  width: fit-content;
  margin-inline: auto;
}

.num {
  position: relative;
  width: fit-content;
  margin-inline: auto;
}
.num img {
  position: absolute;
  right: calc(100% + calc(1000vw / 1440));
  top: calc(-4000vh / 1024);
  width: calc(13200vw / 1440);
}
.shuffle {
  display: flex;
  justify-content: center;
  width: fit-content;
  gap: calc(2000vw / 1440);
}
.place {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(17500vw / 1440);
  height: calc(23000vw / 1440);
  background-color: #FFF9E9;
  border-radius: calc(2000vw / 1440);
}
#guuki .place {
  width: calc(20000vw / 1440);
  font-size: calc(18000vw / 1440);
}
@media (min-aspect-ratio: 1440/1024) {
  .num img {
/*    right: calc(100% + calc(1000vw / 1440));*/
/*    top: calc(-4000vh / 1024);*/
    width: calc(13200vh / 1024);
  }
  .shuffle {
/*    gap: calc(2000vw / 1440);*/
  }
  .place {
    width: calc(17500vh / 1024);
    height: calc(23000vh / 1024);
    border-radius: calc(2000vh / 1024);
  }
  #guuki .place {
    width: calc(20000vh / 1024);
    font-size: calc(18000vh / 1024);
  }
}

.btns {
  display: flex;
  justify-content: center;
  width: fit-content;
  gap: calc(1000vw / 1440);
  margin-inline: auto;
  margin-top: calc(3000vh / 1024);
}
.btns > button {
  aspect-ratio: 160 / 62;
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(16000vw / 1440);
  border-radius: calc(10000vw / 1440);
  cursor: pointer;
}
.btns .start {
  background-color: #E95377;
  color: #fff;
}
.btns .stop {
/*  background-color: #555;*/
  background-color: #E95377;
  color: #fff;
}
.btns .clear {
  border: 2px solid;
  color: #000;
}
.btns .start[disabled] {
  background-color: #999;
  cursor: auto;
}
.btns .stop[disabled] {
  background-color: #999;
  cursor: auto;
}
.btns .clear[disabled] {
  color: #999;
  cursor: auto;
}
@media (min-aspect-ratio: 1440/1024) {
  .btns {
    gap: calc(1000vh / 1024);
  }
  .btns > button {
    width: calc(16000vh / 1024);
    border-radius: calc(10000vh / 1024);
  }
}


#clear {
  position: absolute;
  right: calc(2000vw / 1440);
  top: calc(2000vw / 1440);
  aspect-ratio: 160 / 62;
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(16000vw / 1440);
  background-color: #000;
/*  border: 2px solid;*/
  border-radius: calc(10000vw / 1440);
  color: #fff;
  cursor: pointer;
}
#clear:hover {
  opacity: 0.9;
}
@media (min-aspect-ratio: 1440/1024) {
  #clear {
    width: calc(16000vh / 1024);
    border-radius: calc(10000vh / 1024);
  }
}


#result,
#result_clear,
#reset {
  position: absolute;
  display: block;
  padding: calc(1000vw / 1440) calc(2000vw / 1440);
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: calc(800vw / 1440);
  cursor: pointer;
  color: #000;
  font-size: calc(2400vw / 1440);
  font-weight: bold;
  text-align: center;
}
#result,
#result_clear {
  right: calc(2000vw / 1440);
  width: calc(16500vw / 1440);
}
#result {
  bottom: calc(8000vw / 1440);
}
#result_clear {
  bottom: calc(2000vw / 1440);
}
#reset {
  left: calc(2000vw / 1440);
  bottom: calc(2000vw / 1440);
  padding: calc(800vw / 1440) calc(2000vw / 1440);
  background-color: #000;
  border: none;
  color: #fff;
  font-size: calc(1600vw / 1440);
  font-weight: normal;
}
#result:hover,
#result_clear:hover,
#reset:hover {
  opacity: 0.9;
}
@media (min-aspect-ratio: 1440/1024) {
  #result,
  #result_clear,
  #reset {
    padding: calc(1000vh / 1024) calc(2000vh / 1024);
    border-radius: calc(800vh / 1024);
    font-size: calc(2400vh / 1024);
  }
  #result,
  #result_clear {
    right: calc(2000vh / 1024);
    width: calc(16500vh / 1024);
  }
  #result {
    bottom: calc(8000vh / 1024);
  }
  #result_clear {
    bottom: calc(2000vh / 1024);
  }
  #reset {
    left: calc(2000vh / 1024);
    bottom: calc(2000vh / 1024);
    padding: calc(800vh / 1024) calc(2000vh / 1024);
    font-size: calc(1600vh / 1024);
  }
}


#result_wrapper {
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.3);
}
#result_wrapper .inner {
  width: 50%;
  height: 80%;
  padding: calc(3000vw / 1440) calc(20000vw / 1440);
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: calc(1000vw / 1440);
  font-weight: bold;
}
#result_wrapper .ttl {
  font-size: calc(4200vw / 1440);
  text-align: center;
}
#result_wrapper .content {
  height: calc(100% - calc(7200vw / 1440));
  margin-top: calc(3000vw / 1440);
  overflow: scroll;
}
#result_wrapper dl {
  padding: 0 calc(1000vw / 1440);
  font-size: calc(3600vw / 1440);
}
#result_wrapper dl > div {
  display: flex;
  justify-content: space-between;
  gap: calc(2000vw / 1440);
  padding-bottom: calc(1000vw / 1440);
  margin-bottom: calc(2000vw / 1440);
  border-bottom: 1px solid #ccc;
}
#result_wrapper dt {
}
#result_wrapper dd {
}
@media (min-aspect-ratio: 1440/1024) {
  #result_wrapper .inner {
    padding: calc(3000vh / 1024) calc(20000vh / 1024);
    border-radius: calc(1000vh / 1024);
  }
  #result_wrapper .ttl {
    font-size: calc(4200vh / 1024);
  }
  #result_wrapper .content {
    height: calc(100% - calc(7200vh / 1024));
    margin-top: calc(3000vh / 1024);
  }
  #result_wrapper dl {
    padding: 0 calc(1000vh / 1024);
    font-size: calc(3600vh / 1024);
  }
  #result_wrapper dl > div {
    gap: calc(2000vh / 1024);
    padding-bottom: calc(1000vh / 1024);
    margin-bottom: calc(2000vh / 1024);
  }
}