@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=LINE+Seed+JP&display=swap");
* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  overflow: hidden;
  border-radius: 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: manipulation;
}

html {
  scroll-behavior: smooth;
  overflow-y: auto;
}

body {
  display: block;
  width: 100vw;
  min-height: 100dvh;
  background-color: #f0f0f0;
  padding-bottom: 256px;
}
body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}
body::-webkit-scrollbar-thumb:hover {
  background-color: #222;
}
body::-webkit-scrollbar-track {
  background-color: #fff;
}

section.input {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(720px, 100% - 2rem);
  margin-inline: auto;
  margin-top: 64px;
  overflow: visible;
}
section.input label {
  position: relative;
  display: block;
  width: 100%;
  height: 56px;
  overflow: visible;
  cursor: text;
  padding-block: 8px;
}
section.input label[for=input_mahi], section.input label[for=input_oikaze] {
  display: flex;
  align-items: center;
  gap: 8px;
  height: auto;
  cursor: pointer;
}
section.input label[for=input_mahi] input, section.input label[for=input_oikaze] input {
  display: none;
}
section.input label[for=input_mahi]::before, section.input label[for=input_oikaze]::before {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  aspect-ratio: 1;
  background-color: transparent;
  border: 1px solid #2020a0;
  box-sizing: border-box;
  border-radius: 4px;
  z-index: -1;
  transition: all 0.2s ease;
}
section.input label[for=input_mahi]::after, section.input label[for=input_oikaze]::after {
  content: "";
  position: absolute;
  left: 1.75px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-check%22%3E%3Cpath%20stroke%3D%22none%22%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22/%3E%3Cpath%20d%3D%22M5%2012l5%205l10%20-10%22%20/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
  scale: 0;
  transition: all 0.2s ease;
}
section.input label[for=input_mahi] p, section.input label[for=input_oikaze] p {
  display: block;
  margin-left: 28px;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  font-size: 18px;
}
section.input label[for=input_mahi] span, section.input label[for=input_oikaze] span {
  position: static;
  display: block;
  font-size: 11px;
  color: #777;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  translate: -12px 4px;
}
section.input label[for=input_mahi]:has(input:checked)::before, section.input label[for=input_oikaze]:has(input:checked)::before {
  background-color: #2020a0;
}
section.input label[for=input_mahi]:has(input:checked)::after, section.input label[for=input_oikaze]:has(input:checked)::after {
  scale: 1;
}
section.input label select {
  display: block;
  width: 100%;
  height: 100%;
  background-color: transparent;
  border: 1px solid #aaa;
  outline: none;
  border-radius: 12px;
  padding-inline: 1rem;
  font-size: 16px;
  color: #000;
  font-family: "LINE Seed JP", sans-serif;
  cursor: pointer;
}
section.input label select:focus + span, section.input label select:valid + span {
  top: 8px;
  transform: none;
  font-size: 12px;
  color: #333;
  letter-spacing: 0.1em;
  background-color: #f0f0f0;
}
section.input label select option {
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
}
section.input label select option:checked {
  background-color: #e5e5e5;
}
section.input label input[type=text] {
  display: block;
  width: 100%;
  height: 100%;
  background-color: transparent;
  box-sizing: border-box;
  border: 1px solid #aaa;
  outline: none;
  border-radius: 12px;
  box-sizing: border-box;
  padding-inline: 1rem;
  font-size: 16px;
  color: #000;
  font-weight: 400;
  font-family: "LINE Seed JP", sans-serif;
}
section.input label input[type=text]:not(:-moz-placeholder) + span {
  top: 8px;
  transform: none;
  font-size: 12px;
  color: #333;
  letter-spacing: 0.1em;
  background-color: #f0f0f0;
}
section.input label input[type=text]:focus + span, section.input label input[type=text]:not(:placeholder-shown) + span {
  top: 8px;
  transform: none;
  font-size: 12px;
  color: #333;
  letter-spacing: 0.1em;
  background-color: #f0f0f0;
}
section.input label > span {
  position: absolute;
  left: 12px;
  top: 50%;
  translate: 0 -50%;
  background-color: transparent;
  padding-inline: 4px;
  font-size: 16px;
  color: #777;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  pointer-events: none;
  transition: all 0.2s ease;
}
section.input .quick-compare-wrapper {
  width: min(720px, 100% - 2rem);
  margin-inline: auto;
}
section.input .quick-compare {
  display: none;
  background-color: #fff;
  border: 1px solid #aaa;
  border-radius: 12px;
  padding: 16px 20px;
  margin-block: 4px;
}
section.input .quick-compare.active {
  display: block;
}
section.input .quick-compare h3 {
  font-size: 16px;
  font-family: "LINE Seed JP", sans-serif;
  margin-bottom: 12px;
  color: #111;
  text-align: center;
  font-weight: 600;
}
section.input .quick-compare ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
section.input .quick-compare ul li {
  display: flex;
  justify-content: space-between;
  font-family: "LINE Seed JP", sans-serif;
  font-size: 15px;
  color: #555;
  padding-bottom: 8px;
  border-bottom: 1px dashed #ddd;
}
section.input .quick-compare ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
section.input .quick-compare ul li span:last-child {
  font-weight: bold;
  color: #000;
  font-size: 16px;
}
section.input .input_rank {
  display: flex;
  align-items: center;
  gap: 8px;
}
section.input .input_rank label {
  width: calc(100% - 96px);
}
section.input .input_rank .input_rank_btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
section.input .input_rank .input_rank_btns div {
  display: grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  transition: all 0.2s ease;
  cursor: pointer;
  transition: all 0.2s ease;
}
section.input .input_rank .input_rank_btns div svg {
  display: block;
  width: 20px;
  stroke: #777;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
section.input .input_rank .input_rank_btns div:hover {
  background-color: rgba(0, 0, 0, 0.1333333333);
}
section.input .container {
  display: flex;
  align-items: center;
  gap: 12px;
}
section.input .container label {
  width: calc(50% - 6px);
}
section.input #btn_calc {
  display: none;
}

section.result {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  flex-wrap: wrap;
  width: min(720px, 100% - 2rem);
  margin-inline: auto;
  margin-block: 56px;
  padding-block: 40px;
  border: 1px solid #a02020;
  box-sizing: border-box;
  border-radius: 16px;
}
section.result span {
  display: block;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  color: rgba(160, 32, 32, 0.6666666667);
  font-size: 16px;
}
section.result p {
  display: block;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  color: #a02020;
  font-size: 72px;
}

span.hr {
  display: block;
  width: min(700px, 100% - 4rem);
  margin-inline: auto;
  height: 0.5px;
  background-color: #aaa;
  margin-block: 24px;
}

.suggest-box {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 16px);
  display: block;
  width: 100%;
  list-style: none;
  padding: 4px 0;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  font-size: 15px;
  font-family: "LINE Seed JP", sans-serif;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.0666666667);
  z-index: 100;
}

.suggest-box::-webkit-scrollbar {
  width: 6px;
}

.suggest-box::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.suggest-box li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  cursor: pointer;
  color: #222;
  transition: background-color 0.15s ease;
  overflow: hidden;
}

.suggest-box li .suggest-sprite {
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  -o-object-fit: contain;
  object-fit: contain;
  image-rendering: pixelated;
}

.suggest-box li span {
  display: block;
  width: 100%;
  min-width: 0;
  position: static;
  translate: none;
  background: none;
  padding: 0;
  font-size: 15px;
  color: inherit;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  pointer-events: none;
  transition: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggest-box li:hover {
  background-color: #f0f4ff;
  color: #2020a0;
}

.suggest-box li.suggest-loading,
.suggest-box li.suggest-empty {
  color: #999;
  cursor: default;
  font-size: 13px;
}

.suggest-box li.suggest-loading:hover,
.suggest-box li.suggest-empty:hover {
  background: none;
  color: #999;
}

.suggest-box:empty {
  display: none;
}

/* 勝ち負け表示用 */
.compare-status {
  font-size: 14px !important;
  margin-left: 12px;
}
.compare-status.win {
  color: #f44336 !important;
}
.compare-status.draw {
  color: #4caf50 !important;
}
.compare-status.loss {
  color: #2196f3 !important;
}

/* スピナーアニメーション */
.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid rgba(160, 32, 32, 0.1333333333);
  border-top-color: #a02020;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-block: 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}