@charset "UTF-8";
/* Responsive */
.page {
  width: 80%;
  margin-left: 10%;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .page {
    width: 90%;
    margin-left: 5%;
  }
}

.box-shadow, .title-img:hover:after, .shop-link, .note, .admin-note, .style-button, .adduser-button, .addadmin-button, .userlist-button, .container input {
  -webkit-box-shadow: 6px 6px 3px rgba(16, 16, 16, 0.3);
          box-shadow: 6px 6px 3px rgba(16, 16, 16, 0.3);
}

.box-shadow:active, .title-img:active:after, .shop-link:active, .style-button:active, .adduser-button:active, .addadmin-button:active, .userlist-button:active {
  -webkit-box-shadow: 3px 3px 1px rgba(16, 16, 16, 0.3);
          box-shadow: 3px 3px 1px rgba(16, 16, 16, 0.3);
}

/* Font Family */
@font-face {
  font-family: 'Kouzan';
  src: url("../fonts/kouzan_mouhitsu.ttf");
}

.font-pop {
  font-family: "Nico Moji", "M PLUS Rounded 1c", sans-serif;
  font-weight: bolder !important;
}

.font-hel {
  font-family: Helvetica, sans-serif;
}

.font-round {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: bold !important;
}

.font-kouzan {
  font-family: "Kouzan", "Yu Mincho", "Hiragino Mincho ProN", "YuMincho", serif;
  font-weight: bold;
}

.font-mincho {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "YuMincho", serif;
}

.font-gothic {
  font-family: "Yu Gothic", "Hiragino Sans", sans-serif;
}

.font-meiryo {
  font-family: "メイリオ", "Yu Gothic", "Hiragino Sans", sans-serif;
}

/* Balloon */
.balloon-right {
  position: relative;
  display: inline-block;
  margin: 1.5em 0;
  padding: 0.5rem 10px;
  min-width: 120px;
  max-width: 100%;
  color: #555;
  background: white;
  text-align: center;
  border: solid 3px darkblue;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin: 1.5em 15px 1.5em 0;
  border-radius: 12px;
  font-size: 1rem;
}

.balloon-right:before {
  content: "";
  position: absolute;
  border: 12px solid transparent;
  z-index: 2;
  top: 50%;
  right: -24px;
  margin-top: -12px;
  border-left: 12px solid white;
}

.balloon-right:after {
  content: "";
  position: absolute;
  border: 14px solid transparent;
  z-index: 1;
  top: 50%;
  right: -30px;
  margin-top: -14px;
  border-left: 14px solid darkblue;
}

.box-shadow:active {
  margin-top: 3px;
}

.text-shadow {
  text-shadow: 4px 4px 2px rgba(0, 0, 0, 0.32);
}

/* General */
html, body {
  font-family: "メイリオ", "Yu Gothic", "Hiragino Sans", sans-serif;
  margin: 0;
  color: #333;
  background-color: #9DB;
  background-image: url("../img/tatami01.jpg");
  background-repeat: repeat;
  font-size: calc(max(1.6vw, 16px));
  height: 100%;
}

.wrapper {
  min-height: 100vh;
  position: relative;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .wrapper {
    min-height: 200vh;
  }
}

th {
  background: #888;
  border: solid 1px #ccc;
  color: #fff;
  padding: 1%;
  width: 4em;
}

@media screen and (min-width: 1280px) {
  th {
    width: 6em;
  }
}

td {
  background: white;
  border: solid 1px #ccc;
  padding: 1%;
}

td:first-child {
  background: #fbf5f5;
  width: 8em;
}

button {
  background-color: #ddd;
  border: 2px outset #eee;
  padding: 1px;
  margin: 6px;
}

hr {
  border-width: 4px;
  border-color: #355;
  margin: auto;
  margin-bottom: 0.5em;
}

noscript {
  color: darkred;
  font-weight: bold;
  font-size: 3vw;
  width: 90%;
  margin-left: 5%;
  display: block;
}

/* FOR FLASK */
.color-frame {
  border: 5px solid #ccc;
  padding: 0.8em;
  background: #CEF;
}

#answer {
  margin-left: 0.8em;
  display: inline-block;
}

#answer span {
  color: red;
  font-size: 1.3rem;
}

.page {
  padding-bottom: 10px;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .page {
    width: auto;
  }
}

.page input {
  background: white;
}

.page textarea {
  background: white;
}

.page #btn {
  margin-top: 1vw;
}

.page span {
  color: red;
}

.page .sep {
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .page .sep::after {
    content: '\A';
    white-space: pre;
  }
}

.circle-red {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50% 100%;
  text-align: center;
  background-color: #f7690b;
}

.circle-blue {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50% 100%;
  text-align: center;
  background-color: #1fb1eb;
}

.circle-purple {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50% 100%;
  text-align: center;
  background-color: #d447c9;
}

.flash {
  background: #1fb1eb;
  padding: 0.5em;
  border: 1px solid #AACBE2;
}

.error {
  background: #F0D6D6;
  padding: 0.5em;
}

#flash_area span {
  color: red;
  font-weight: bold;
}

.no-link {
  cursor: default;
  text-decoration: none;
  color: inherit;
}

/*********************/
.sp-hidden {
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .sp-hidden {
    display: none;
  }
}

/* HEADER */
.sp-header {
  display: none;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .sp-header {
    display: block;
  }
}

header {
  width: 100%;
  height: auto;
  background-image: url("../img/karuta_package_bg_header.png");
  background-size: cover;
  z-index: 2;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  header {
    font-size: 12vw;
    background-image: url(../img/karuta_package_bg.png);
    z-index: 5;
    width: 100vw;
    height: calc(max(100vh, 120vw));
    position: relative;
  }
  header h1 {
    padding-left: calc(max(0px, 50vw - 1.5em));
  }
  header img {
    width: 50%;
    margin-left: 37%;
    margin-top: calc(max(10%, 50vh - 55%));
  }
  header .title-img {
    float: none;
  }
  header .title-img img {
    width: 30vw;
    margin: 0px;
    margin-left: 5%;
  }
  header .metanav {
    position: fixed;
    margin: 5px;
    top: 0px;
    right: 0px;
    z-index: 6;
    padding: 2vw;
  }
}

.title-balloon {
  width: 3em;
  float: left;
  -webkit-transform: rotate(-15deg);
          transform: rotate(-15deg);
}

.title-text {
  float: left;
  margin-top: 1em;
  margin-right: 1em;
  font-size: 1.4em;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 620px) {
  .title-text {
    text-align: right;
  }
}

@media screen and (max-width: 497px) {
  .title-text {
    width: auto;
  }
}

@media screen and (max-width: 767px) {
  .title-text {
    font-size: 8vw;
    margin: 0px;
    margin-top: 66vh;
    margin-top: calc(min(25vh + 70vw, 66vh));
  }
  .title-text::before {
    content: "";
    position: absolute;
    background-image: url("../img/karuta_package_title_rgba.png");
    background-size: contain;
    width: 50vw;
    height: 40vh;
    top: 25vh;
    left: 38%;
    left: calc(50vw - min(12vw, 7.5vh));
    bottom: calc(max(30%, 50vh - 25vw));
  }
}

.title-img {
  float: left;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

.title-img img {
  width: 4.2em;
}

.title-img:hover:after {
  content: "えかモくんの\Aページ　　>";
  white-space: pre;
  position: absolute;
  margin: 0.8em;
  width: 7em;
  font-size: 0.8em;
  padding: 0.3em;
  border-radius: 1em;
  border: outset 2px seagreen;
  background-color: darkseagreen;
  color: lightyellow;
  font-weight: bold;
  text-decoration: none;
  margin-left: -0.2em;
  letter-spacing: -0.1em;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .title-img:hover:after {
    font-size: 4vw;
    margin-top: 3em;
  }
}

.title-img:active:after {
  margin-top: calc(0.8em + 3px);
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .title-img:active:after {
    margin-top: calc(3em + 3px);
  }
}

@media screen and (max-width: 767px) {
  .title-img:after {
    content: "えかモくんの\Aページ　　>";
    white-space: pre;
    position: absolute;
    margin: 0.8em;
    width: 7em;
    font-size: 4vw;
    padding: 0.3em;
    border-radius: 1em;
    border: outset 2px seagreen;
    background-color: darkseagreen;
    color: lightyellow;
    font-weight: bold;
    text-decoration: none;
    margin-left: -0.2em;
    margin-top: 3em;
    letter-spacing: -0.1em;
    -webkit-box-shadow: 6px 6px 3px rgba(16, 16, 16, 0.3);
            box-shadow: 6px 6px 3px rgba(16, 16, 16, 0.3);
  }
}

.mirror {
  -webkit-transform: scale(-1, 1);
          transform: scale(-1, 1);
}

.inner {
  display: inline-block;
  margin-left: 10%;
  margin-left: calc(max(0px, 50% - 20em));
  padding: 1vw 0;
}

@media screen and (min-width: 1280px) {
  .inner {
    margin-left: 20%;
    margin-left: calc(max(0px, 50% - 22em));
  }
}

.metanav {
  float: right;
  text-align: right;
  font-size: 0.8em;
  padding: 0.3em;
  margin: 1.2em 0;
  margin-top: calc(2vw - 0.5em);
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 620px) {
  .metanav {
    margin-top: 6em;
    margin-top: calc(2vw + 5.5em);
  }
}

.metanav a {
  font-size: calc(max(15px, min(4vw, 1vh)));
  width: 6vw;
  height: 4vw;
  line-height: 4vw;
  text-decoration: none;
  position: relative;
  color: #333;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

.metanav a span {
  position: absolute;
  display: inline-block;
  line-height: initial;
  width: 6vw;
  left: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  text-align: center;
  color: white;
}

@media screen and (max-width: 767px) {
  .metanav a {
    width: 60px;
    height: 50px;
    line-height: 50px;
    font-size: 3vw;
  }
  .metanav a span {
    width: 60px;
  }
}

@media screen and (min-width: 1280px) {
  .metanav a {
    font-size: 1.56em;
  }
}

.metanav .top-link {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50% 100%;
  text-align: center;
  width: 8em;
  border-radius: 1em;
  border: outset 2px seagreen;
  background-color: darkseagreen;
  color: lightyellow;
  font-weight: bold;
}

.metanav .top-link:hover {
  background-color: paleturquoise;
}

.shop-link {
  position: absolute;
  left: 0.2em;
  z-index: 2;
  background-color: navy;
  border-radius: 1em;
  border: inset 2px navy;
  padding: 0.5em;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
  color: lightyellow;
  letter-spacing: -0.1em;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

.shop-link:hover {
  background-color: #33B;
}

.shop-link:active {
  margin-top: 3px;
}

@media screen and (max-width: 767px) {
  .shop-link {
    font-size: 3vw;
    position: fixed;
  }
}

.heading {
  text-align: center;
  margin-bottom: 0;
  font-size: 3em;
  color: #220;
}

.note {
  height: 100px;
  min-height: 5em;
  overflow-y: scroll;
  background-color: rgba(255, 200, 150, 0.3);
  margin: 8px auto;
  color: black;
  border: solid;
  border-color: orange;
  font-size: 0.8em;
  text-shadow: none !important;
  position: absolute;
  background-color: rgba(255, 200, 150, 0.8);
  top: 8em;
  right: 0;
  width: 94%;
  padding: 12px;
  padding-left: 2em;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

.note.folded {
  -webkit-transition-duration: 250ms;
          transition-duration: 250ms;
  -webkit-transition-property: width;
  transition-property: width;
  width: 0px;
  padding: 0px;
  overflow: hidden;
  padding-left: 1.5em;
}

.note.folded:hover {
  width: 94%;
  padding: 12px;
  padding-left: 2em;
}

.note:before {
  content: 'ガイド';
  display: block;
  position: absolute;
  left: 0px;
  top: 0px;
  bottom: 0px;
  text-align: center;
  -webkit-writing-mode: vertical-rl;
      -ms-writing-mode: tb-rl;
          writing-mode: vertical-rl;
  background-color: #ffc896;
  font-family: "Kouzan", "Yu Mincho", "Hiragino Mincho ProN", "YuMincho", serif;
  font-weight: bold;
  font-size: 1.5em;
  border-right: solid 3px black;
}

@media screen and (max-width: 767px) {
  .note {
    top: calc(max(100vh, 120vw) + 5em);
  }
}

.master-note {
  height: 6em;
}

.admin-note {
  height: 100px;
  min-height: 100px;
  background-color: #FFFBF6;
  margin: 8px auto;
  padding: 12px;
  width: 90%;
  color: black;
  border: solid 6px;
  border-color: orange;
  font-size: 0.8em;
  text-shadow: none !important;
}

.room {
  margin: 0 8px;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

.room.grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
      grid-template-columns: 1fr 1fr;
}

@media screen and (min-width: 1280px) {
  .room.grid.guest {
    -ms-grid-columns: 1fr 1.3fr;
        grid-template-columns: 1fr 1.3fr;
    gap: 8px;
  }
  .room.grid.guest .karuta-area {
    -ms-grid-column: 2;
    grid-column: 2;
  }
}

.room.grid.guest #js-modal-bg {
  grid-row: none;
}

.room.grid .double-column-config {
  grid-column: 1/-1;
}

.room.grid #above-participant-area {
  grid-column: 1/-1;
  width: 94vw;
}

.room.grid .participant {
  -ms-grid-column: 1;
  grid-column: 1;
}

.room.grid .participant.wide {
  grid-column: 1/-1;
}

@media screen and (max-width: 767px) {
  .room {
    padding: 1vw 0;
    display: block;
  }
}

.room button:disabled {
  color: rgba(16, 16, 16, 0.3);
  -webkit-box-shadow: none;
          box-shadow: none;
  background-color: lightgray;
}

.room input {
  width: 96%;
}

.room h1 {
  margin-left: 0.7em;
}

.room h3 {
  text-align: center;
}

.room dt {
  float: left;
}

.room dd {
  margin-left: 4.5rem;
  margin-bottom: 3px;
}

@media screen and (min-width: 1280px) {
  .large-room {
    -ms-grid-columns: 1fr 1.3fr 1.3fr;
        grid-template-columns: 1fr 1.3fr 1.3fr;
    gap: 1vw;
  }
}

@media screen and (min-width: 767px) {
  .admin-room {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1.3fr;
        grid-template-columns: 1fr 1.3fr;
    grid-auto-rows: minmax(auto, 40vw) auto auto;
  }
  .admin-room #adduser-form-area {
    -ms-grid-row: 1;
    grid-row: 1;
    -ms-grid-column: 1;
    grid-column: 1;
  }
  .admin-room #js-adminlist {
    -ms-grid-row: 2;
    -ms-grid-row-span: 1;
    grid-row: 2/3;
    -ms-grid-column: 1;
    grid-column: 1;
  }
  .admin-room #js-userlist {
    -ms-grid-row: 1;
    -ms-grid-row-span: 2;
    grid-row: 1/3;
    -ms-grid-column: 2;
    grid-column: 2;
  }
}

.admin-room dd {
  margin-left: 0;
}

.style-button {
  height: auto;
  padding: 1px 0.5em;
  background-color: lightblue;
  border: 1.5px outset white;
  border-radius: 2em;
  margin: 6px;
  margin-right: 2vw;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .style-button {
    margin-right: 3vw;
  }
}

.style-button::after {
  content: '>';
  margin-left: 1.3em;
  color: #999;
}

.style-button:active {
  -webkit-transform: translate(0, 2px);
  -moz-transform: translate(0, 2px);
  -ms-transform: translate(0, 2px);
  -o-transform: translate(0, 2px);
  --transform: translate(0, 2px);
}

.modal-button {
  position: relative;
  top: -8px;
  font-size: 0.7em;
}

.login-note {
  height: auto;
  min-height: 100px;
  font-size: 1.2em;
  font-weight: bold;
  position: static;
  padding-left: 12px;
  margin-top: 0.5em;
}

.login-note:before {
  display: none;
}

.adduser-area {
  width: 98%;
  height: auto;
  max-height: 34em;
  overflow-y: scroll;
  -ms-grid-row: 1;
  -ms-grid-row-span: 2;
  grid-row: 1 / span 2;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

.adduser-area h2 {
  font-size: 1.6em;
}

.adduser-area hr {
  margin: 10px 0;
  border: none;
  border-bottom-style: dashed;
  border-width: 4px;
}

.adduser-area dt {
  font-weight: bold;
}

.adduser-area p {
  font-size: 0.8em;
}

@media screen and (max-width: 767px) {
  .adduser-area {
    width: 90%;
    margin-left: 5%;
  }
}

@media screen and (min-width: 1280px) {
  .adduser-area {
    grid-row: auto;
  }
}

.adduser-area input {
  width: 20em;
  margin-left: 0.5em;
}

.adduser-area input[name="password"] {
  width: 12em;
}

.adduser-form-area {
  position: relative;
  display: inline-block;
  width: 100%;
}

.adduser-form-area button {
  font-size: 0.8em;
  margin: 1px;
}

.adduser-form-area hr {
  border-width: 1px;
}

.adduser-button-area {
  width: 80%;
  margin-left: 10%;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

.adduser-button-area dd {
  margin-left: auto;
}

.adduser-button-area button {
  font-size: 1.1em;
  width: 100%;
}

@media screen and (max-width: 767px) {
  .adduser-button-area {
    position: static;
    clear: both;
  }
  .adduser-button-area button {
    margin: 1px auto;
    width: 100%;
  }
}

.adduser-button, .addadmin-button {
  height: 2.2em;
  padding: 0 3em;
  color: #333;
  font-weight: bold;
  background-color: lightblue;
  border: 2px solid darkgray;
  border-radius: 2em;
  margin: 6px;
}

.adduser-button::after, .addadmin-button::after {
  content: '>';
  margin-left: 2em;
  color: #999;
}

.addadmin-button {
  background-color: pink;
  border-color: palevioletred;
}

.admin-button {
  height: 4em;
}

dd.adduser-checkbox {
  clear: both;
  margin-left: 1em !important;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
  margin-top: -1.5em;
  float: right;
}

@media screen and (max-width: 767px) {
  dd.adduser-checkbox {
    margin-left: 0px !important;
  }
}

#js-showpass-button, #js-genpass-button {
  font-size: 0.8em;
}

#js-showpass-button {
  width: 4em;
}

#js-genpass-button {
  -webkit-transform: translateY(-0.7em);
          transform: translateY(-0.7em);
}

.usertable-area {
  width: 48%;
  width: calc(max(48%, 30em));
  width: 98%;
  margin: 0 1%;
  margin-left: calc(50% - max(24%, 15em));
  margin-left: 0px;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .usertable-area {
    width: 90%;
    margin-left: 5%;
  }
}

@media screen and (min-width: 1280px) {
  .usertable-area {
    margin-left: 1%;
  }
}

#js-adminlist {
  max-height: 46vh;
}

#js-userlist {
  max-height: 118vh;
}

.user-table {
  font-size: 0.9em;
  width: 100%;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .user-table {
    font-size: 0.8em;
  }
}

.user-table td:first-of-type {
  font-size: 1.3em;
  text-align: center;
  width: 6em;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .user-table td:first-of-type {
    font-size: 1.5em;
    width: 4em;
  }
}

@media screen and (min-width: 1280px) {
  .user-table td:nth-child(2) {
    width: 8em;
  }
}

.user-table td:last-of-type {
  width: 22%;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .user-table td:last-of-type {
    width: 32px;
  }
}

.user-table td.expire {
  color: red;
}

.user-table-container {
  max-height: 92%;
  overflow-y: scroll;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .user-table-container {
    max-height: 22em;
  }
}

.userlist-button {
  height: 2em;
  padding: 0 calc(min(22% - 5em, 3em));
  color: #333;
  font-weight: bold;
  background-color: lightblue;
  border: 2px solid darkgray;
  border-radius: 2em;
  margin: 1px;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .userlist-button {
    padding: 0 1em;
    font-size: 0.65em;
    height: 18px;
  }
}

.userlist-button::after {
  content: '>';
  margin-left: 1em;
  color: #999;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .userlist-button::after {
    margin-left: 0.5em;
  }
}

.userlist-area {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 100%;
}

.center-align {
  text-align: center;
}

.center-margin {
  margin-left: auto;
  margin-right: auto;
}

.enable-small {
  display: none;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .enable-small {
    display: block;
  }
}

.container {
  margin: 0 auto;
  margin-top: 1rem;
  padding-top: 1em;
  padding-bottom: 10px;
  color: #843531;
  background-color: rgba(255, 255, 255, 0.15);
}

.container input {
  background-color: #ffe;
  padding: 0.3em 0.8em;
  margin-bottom: calc(max(10px, 2%));
  border: outset;
  border-radius: 1.3em;
  border-color: antiquewhite;
}

.container input[type=checkbox] {
  background: none;
  -webkit-box-shadow: none;
          box-shadow: none;
  vertical-align: middle;
  margin: 0px;
  width: 1em;
  height: 1em;
  margin-left: 0.5em;
}

.container input[readonly] {
  color: gray;
  background-color: lightgray;
}

.container .guest input {
  width: max(40%, 18em);
}

.messages {
  background-color: #eee;
  min-height: 100px;
  padding: 8px;
  margin-top: 8px;
  margin-bottom: 1vw;
  overflow-x: visible;
  white-space: pre-wrap;
  overflow-y: scroll;
  width: 100%;
  height: 150px;
  border: 2px solid #335;
  border-radius: 6px 0 0 6px;
  text-shadow: none !important;
  color: #333;
  font-weight: bold;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .messages {
    width: 100%;
    clear: both;
    position: relative;
    top: 2.2em;
  }
}

.inline-block {
  display: inline-block;
}

.double-column-config {
  display: block;
}

.double-column-config .room-setting {
  width: 100%;
  margin-top: 1vw;
}

.double-column-config .room-setting #js-room-id {
  width: max(25%, 10em);
  margin-left: 1.5em;
}

.double-column-config .karuta-settings {
  width: 100%;
}

.double-column-config .karuta-settings .karuta-settings-grid {
  border: solid 3px #33f;
  -webkit-box-shadow: 6px 6px 3px rgba(0, 0, 0, 0.3);
          box-shadow: 6px 6px 3px rgba(0, 0, 0, 0.3);
  background-color: rgba(200, 200, 200, 0.5);
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[2];
      grid-template-columns: repeat(2, 1fr);
  -webkit-column-gap: 1vw;
          column-gap: 1vw;
  padding: 0.5em;
}

.double-column-config .karuta-settings.folded h1 {
  display: inline-block;
}

.double-column-config .karuta-settings.folded .karuta-settings-grid {
  display: inline-block;
  margin-left: 1em;
}

.double-column-config .karuta-settings.folded .karuta-settings-grid:before {
  content: 'クリックして開く';
  text-align: center;
  font-size: 1.2em;
}

.double-column-config .karuta-settings.folded #left-settings, .double-column-config .karuta-settings.folded #right-settings, .double-column-config .karuta-settings.folded .detail-config {
  display: none;
}

.double-column-config #js-karuta-penalty-reduce-setting {
  padding-top: 0.5em;
}

.double-column-config #fold-config-button {
  float: right;
  margin-top: -2em;
}

.double-column-config .detail-config {
  -ms-grid-row: 2;
  grid-row: 2;
}

.double-column-config .karuta-controls {
  width: 100%;
}

.double-column-config .karuta-controls .karuta-controls-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[2];
      grid-template-columns: repeat(2, 1fr);
  -webkit-column-gap: 1vw;
          column-gap: 1vw;
  padding: 1em;
  padding-bottom: 0.5em;
}

.double-column-config .karuta-controls h2 {
  display: inline-block;
  margin-right: 1em;
}

.double-column-config .karuta-controls #js-karuta-groupnum {
  width: 4em;
}

.double-column-config .karuta-controls #js-dist-trigger {
  margin-left: 1em;
}

.double-column-config .karuta-controls #js-dist-trigger::before {
  content: '';
  display: inline-block;
  width: 0px;
  height: 0px;
  position: relative;
  top: 0.2em;
  left: -2.2em;
  margin-top: -1em;
  border: 0.5em solid transparent;
  border-left: 1.2em solid green;
}

.double-column-config .karuta-controls #js-dist-trigger:disabled::before {
  border-left: 1.2em solid #bbb !important;
}

.double-column-config .karuta-controls .right-control-panel {
  height: 2.7em;
}

.detail-config {
  display: block;
}

.detail-config.folded {
  display: none;
}

.room-area {
  clear: both;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .room-area {
    margin: 8px;
  }
}

.room-area span {
  color: red;
}

table {
  font-size: 0.65em;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  table {
    margin: 0 auto;
  }
}

.done th {
  background: #B33;
}

.pause th {
  background: #33B;
}

.karuta-title {
  font-size: 2em;
  text-align: center;
}

.master .grid .karuta-title {
  grid-column: 1/-1;
  margin: 0;
  font-size: 1.6em;
}

@media screen and (min-width: 1350px) {
  .karuta-area {
    width: 90%;
    margin: 1.5vw auto;
  }
}

.karuta-area.guest {
  grid-column: 1/-1;
  margin-top: 0.5em;
}

.modal-window {
  position: fixed;
  top: 5vh;
  left: 5vw;
  height: 90vh;
  width: 90vw;
  padding-left: 25%;
  padding-right: 25%;
  text-align: center;
  font-size: 2em;
  border: solid 5px;
  padding: 8px;
  background-color: #ddd;
}

.modal-window.guest {
  top: 0;
  left: 0;
  margin: 1.5vw 1vw;
  height: 84vh;
  width: 98vw;
  z-index: 3;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

.modal-window.guest h1 {
  font-size: 1.2em;
  clear: both;
}

.modal-window.guest .modal-button {
  margin-left: 5em;
}

@media screen and (max-width: 1180px) {
  .modal-window.guest h1 {
    clear: both;
  }
}

.modal-window .timer {
  font-size: 0.7em;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .modal-window .timer {
    margin-right: 3.5em;
    margin-bottom: 0.8em;
  }
}

.modal-bg {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.64);
}

.double-column-modal {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 33vw 67vw;
      grid-template-columns: 33vw 67vw;
}

.double-column-modal .modal-button {
  margin-left: 0 !important;
}

.double-column-modal .card-grid {
  margin-left: 0 !important;
  padding: 8px;
}

.double-column-modal .enable-small {
  display: block;
}

.grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 30% 70%;
      grid-template-columns: 30% 70%;
  gap: 8px;
}

.grid p {
  text-align: center;
}

.note p {
  text-align: left;
}

.card-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr 1fr 1fr 1fr;
      grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 4px;
}

.reading-card {
  width: 100%;
}

.reading-card.zoom {
  z-index: 1000;
  width: 200%;
  margin-left: -50%;
  margin-top: -50%;
  margin-bottom: -100%;
  margin-top: 0;
}

.right-align {
  text-align: right;
}

.answer-card {
  width: 100%;
}

.guest .answer-card:hover {
  border: solid 1px #dec;
}

.guest .answer-card.selected {
  border: solid 3px #dec;
}

.guest .answer-card.correct {
  border: solid 3px #f56;
}

.guest .answer-card.zoom {
  z-index: 1000;
  width: 140%;
  margin-left: -20%;
  margin-top: -20%;
  margin-bottom: -40%;
}

.guest .group-table {
  float: none;
  width: 80%;
  margin: 0 auto;
}

.guest .group-table .you td {
  font-weight: bold;
}

.guest .result-table {
  width: 84%;
  margin-left: 8%;
}

.guest .result-table .highest, .guest .result-table .fastest {
  color: red;
  font-weight: bold;
}

.guest .result-table .you td {
  background-color: #FDE;
}

.guest .result-table .you td:first-child {
  background-color: #FCD;
  font-weight: bold;
}

.guest .result-table th {
  background: url("../img/karuta_package_bg_header.png");
}

.master .preview-answer-area {
  z-index: 3;
}

.master .preview-cardgrid-area {
  z-index: 1;
}

.master .modal-window {
  left: 15vw;
  width: 70vw;
}

.master .modal-window .reading-card {
  width: auto;
  height: 80%;
}

.master .group-table td:nth-child(2) {
  width: 12em;
}

.join-button, .login-button {
  color: #333;
  background-color: lightblue;
  border: 1px solid lightblue;
  font-weight: bold;
}

.login-button {
  float: right;
  margin-top: -3em;
}

#admin-login-button {
  background-color: #f99;
}

#admin-login-button::after {
  margin-left: 1.3em;
  margin-top: 0;
}

.balloon-button {
  position: relative;
  width: 11.5em;
  padding: 0.5em;
  font-size: 1.6em;
  border-radius: 2em;
  right: -100%;
  top: -1em;
  letter-spacing: 0.2em;
  margin-bottom: 0.5em;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .balloon-button {
    width: 10em;
    right: 60%;
    top: 3em;
    margin-bottom: 4em;
    font-size: inherit;
  }
}

@media screen and (min-width: 1280px) {
  .balloon-button {
    right: -150%;
  }
}

.balloon-button:before {
  content: '';
  position: absolute;
  right: -6.5em;
  top: -4.5em;
  background-image: url(../img/img_ekamo_kun.png);
  background-size: contain;
  background-position-x: right;
  height: 7em;
  width: 5em;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .balloon-button:before {
    height: 120px;
    width: 90px;
    margin-right: 2em;
    right: -7.5em;
  }
}

.balloon-button:after {
  content: '';
  position: absolute;
  display: inline-block;
  border-bottom: 2.4em solid transparent;
  border-left: 2.4em solid lightblue;
  left: 10.5em;
  top: 0em;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .balloon-button:after {
    left: 9em;
  }
}

.balloon-button:hover {
  background-color: snow;
}

.balloon-button:hover::after {
  border-left: 2.4em solid snow;
}

.balloon-button:active::before {
  top: -5.5em;
}

.login-button {
  margin-left: min(10%,10em);
  padding-right: 2.3em;
  height: 3em;
  text-align: center;
}

.login-button:after {
  content: '>';
  margin-left: 1.8em;
  margin-top: -0.75em;
  color: #999;
  display: inline-block;
  position: absolute;
}

.group-download-button {
  background-color: bisque;
}

.group-download-button:disabled {
  display: none;
}

.bgimg-ekakunoshin {
  background-color: #f99;
  border: 1px solid #f99;
}

.bgimg-ekakunoshin::before {
  background-image: url(../img/img_ekaku_noshin.png);
}

.bgimg-ekakunoshin::after {
  border-left-color: #f99;
}

.grid-full-column {
  grid-column: 1/-1;
}

.karuta-settings input {
  width: 4em;
  text-align: right;
  padding: 0 0.2em;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .karuta-settings input {
    width: 2.4em;
  }
}

.karuta-settings select {
  width: 50%;
  background-color: white;
}

.karuta-settings #js-karuta-kind {
  width: 100%;
}

#js-karuta-num-max {
  display: inline-block;
  margin-left: 1em;
}

#js-waiting-cell {
  width: 50vw;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  #js-waiting-cell {
    width: 75vw;
  }
}

#js-waiting-cell p {
  display: inline-block;
  margin: 1px 0.2em;
}

@media screen and (min-width: 1280px) {
  .participant table {
    margin: 0 auto;
  }
}

.inline-label {
  display: inline-block;
  width: 70%;
}

#js-joinAfter-button {
  background-color: #FFDDB3;
  border-color: #ffae78;
}

.before-group-table {
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .before-group-table {
    clear: both;
  }
}

.group-table-container {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr 1fr;
      grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .group-table-container {
    display: block;
  }
}

.group-table {
  float: left;
  text-shadow: none !important;
}

.group-table .fastest td {
  background-color: #FED;
}

.group-table .fastest td:first-child {
  background-color: #EC9;
}

.group-table .first td, .group-table .highest td {
  background-color: #FDE;
}

.group-table .first td:first-child, .group-table .highest td:first-child {
  background-color: #FCD;
}

.timer {
  display: inline-block;
  background-color: #446;
  color: #FE3;
  width: 3em;
  text-align: right;
}

#js-start-timer {
  margin-right: 0.3em;
}

.timer-button {
  background-color: forestgreen;
  color: white;
}

.timer-button:after {
  content: none;
}

#js-specify-next {
  margin-top: -0.5em;
  -webkit-transform: translate(0.2em, 0.6em);
          transform: translate(0.2em, 0.6em);
  font-size: 0.9em;
  display: inline-block;
}

#js-specify-next[hidden] {
  display: none;
}

#js-specify-next input {
  width: 9.5em;
  float: left;
  border-radius: 5px;
}

#js-specify-next input:disabled {
  background-image: none;
  background-color: #eee;
  border-color: #767171;
}

#js-specify-next input::-webkit-inner-spin-button, #js-specify-next input::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
  -moz-appearance: textfield !important;
}

#js-specify-next p {
  position: absolute;
  margin-top: 0.5em;
  margin-left: 5em;
  font-size: 0.8em;
  text-shadow: none !important;
}

.sort-buttons {
  float: right;
}

.sort-buttons span {
  color: black;
}

/* Additional layout class */
.float-left {
  float: left;
  margin-right: 2vw;
}

.float-right {
  float: right;
}

.clear-both {
  clear: both;
}

.full-width {
  width: 100%;
}

/* Main Contents */
.main {
  padding: 1em 1em;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
  min-height: 100%;
}

@media screen and (max-width: 767px) {
  .main {
    padding: 0em 0.8em;
  }
}

.top {
  padding-top: calc(4vw + 6rem);
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .top {
    padding-top: calc(4vw + 6rem + 60px);
  }
}

.bottom {
  padding-bottom: calc(36px + 2rem);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

footer {
  position: absolute;
  z-index: 5;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 10px 0px;
  color: white;
  letter-spacing: 2px;
}

footer small {
  font-size: 80%;
  font-family: "Times New Roman", "Yu Gothic UI", "Yu Mincho", "Hiragino Mincho ProN", "YuMincho", serif;
}

.sep::after {
  content: '';
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 500px) {
  .sep::after {
    content: '\A';
    white-space: pre;
  }
}

.tatami-edge {
  background-color: #355;
  background-image: url("../img/irekobishi.png");
  background-size: cover;
  -webkit-box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2);
          box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2);
  border-bottom: solid 4px #363840;
  /* Screen sizes:
     * Tablet               :   768
     * iPad                 :   768
     * iPhone 6/7/8 Plus(laid): 736
     * Pixel 2(laid)        :   731
     * iPhone 6/7/8(laid)   :   667
     * Galaxy S5(laid)      :   640
     * iPhone 5/SE(laid)    :   568
     * Mobile L             :   425
     * iPhone 6/7/8 Plus    :   414
     * Pixel 2              :   411
     * Pixel 2 XL           :   411
     * Mobile M             :   375
     * iPhone 6/7/8         :   375
     * iPhone X             :   375
     * Galaxy S5            :   360
     * Mobile S             :   320
     * iPhone 5/SE          :   320
    */
}

@media screen and (max-width: 767px) {
  .tatami-edge {
    background-size: 300%;
  }
}

.band {
  height: 3em;
}

button[hidden] {
  display: none;
}
/*# sourceMappingURL=style.css.map */