@charset "UTF-8";
:root {
  --color-dark: #3b486d;
  --color-light: #c0c5cd;
  --color-very-light: #e4e8ef;
  --color-orange: #e66d41;
  --color-orange-hover: #e8805a;
}

@keyframes Gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes stopAnimation {
  0% {
    filter: brightness(500%) blur(10px);
  }
  100% {
    filter: brightness(100%) blur(0);
  }
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  font-family: "Sofia Sans Condensed", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  background: linear-gradient(-45deg, #3b486d, #7684b5, #59668f, #3b5c6d);
  background-size: 400% 400%;
  animation: Gradient 15s ease infinite;
}

#container {
  z-index: 2;
  width: 1300px;
  height: 780px;
  position: absolute;
  margin: auto;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-gap: 20px;
  padding: 50px;
  box-sizing: border-box;
  grid-template-columns: 1fr 280px;
  grid-template-rows: 50px 1fr 73px;
  grid-template-areas: "title	button" "result list" "history list";
  overflow: hidden;
  background-color: var(--color-light);
  border-radius: 10px;
}
#container::before {
  content: "";
  display: block;
  position: absolute;
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: url(img/logo_ow2.png) no-repeat;
  background-size: 600px 600px;
  opacity: 0.2;
}

#title {
  z-index: 100;
  grid-area: title;
  font-size: 50px;
  font-weight: 900;
  font-style: italic;
  line-height: 50px;
  background: linear-gradient(0deg, #a1a8bc 0%, #3B486D 100%);
  color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

#leftColumn {
  z-index: 100;
  grid-area: result;
  overflow: hidden;
  border-radius: 6px;
}

#rightColumn {
  z-index: 100;
  overflow: hidden;
  grid-area: list;
}

#showBtn {
  z-index: 100;
  font-size: 28px;
  grid-area: button;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: var(--color-orange);
  text-align: center;
  color: #ffffff;
  font-weight: 700;
  border-radius: 6px;
  padding-top: 5px;
  transition: all 0.2s ease-out;
}
#showBtn:hover {
  background: var(--color-orange-hover);
  letter-spacing: 2px;
}

/* 画像表示エリア */
#result {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.4);
}
#result:not(:has(div)) {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#result img {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#result .overlay-text {
  position: absolute;
  top: 0.3rem;
  left: 0;
  width: 100%;
  color: white;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.7);
  padding: 0 1rem;
  box-sizing: border-box;
  pointer-events: none;
}
#result .map-name {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.1;
  font-style: italic;
}
#result .rule-name {
  font-size: 36px;
  font-weight: 400;
  font-style: italic;
}
#result .country-label {
  position: absolute;
  bottom: 0.3rem;
  right: 1rem;
  color: white;
  font-size: 36px;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  user-select: none;
}
#result.stop-effect {
  animation: stopAnimation 1s 1 ease-out;
}

.fe-blur {
  filter: url(#feGaussianBlur);
}

/* 履歴 */
#history {
  z-index: 100;
  grid-area: history;
  overflow-x: scroll;
  overflow-y: hidden;
  border-radius: 3px;
}
#history #historyList {
  display: flex;
  flex-wrap: nowrap;
  height: 80px;
  gap: 10px;
}
#history .history-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  width: 250px;
  background: #ffffff;
  border-radius: 3px;
}
#history .history-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px 0 0 3px;
}
#history .history-item .name-label {
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 2px;
}
#history .history-item .group-label {
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* マップ一覧 */
#mapList {
  overflow-y: scroll;
  height: 100%;
  padding-right: 5px;
}
#mapList section {
  background: var(--color-very-light);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
  transition: background 0.2s ease-out;
}
#mapList section h3 {
  font-weight: 600;
  font-size: 20px;
  transition: letter-spacing 0.2s ease-out;
}
#mapList section h3:hover {
  letter-spacing: 2px;
}
#mapList section:has(h3:hover) {
  background: rgba(255, 255, 255, 0.8);
}
#mapList section ul {
  padding: 0;
  list-style-type: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
#mapList section ul li {
  position: relative;
  font-size: 14px;
  background: #ffffff;
  color: #ffffff;
  border-radius: 3px;
  height: 30px;
  line-height: 16px;
  width: 100%;
  overflow: hidden;
}
#mapList section ul li::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  background-image: linear-gradient(90deg, rgb(59, 72, 109) 40%, rgba(59, 72, 109, 0) 80%);
}
#mapList section ul li .map-background {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  object-fit: cover;
  transition: transform 0.2s ease-out;
  transform: scale(1);
  transform-origin: right center;
}
#mapList section ul li:has(input:not(input:checked)) {
  filter: grayscale(1);
  opacity: 0.5;
}
#mapList section ul li:hover .map-background {
  transform: scale(1.1);
  opacity: 0.7;
}

input[type=checkbox] {
  cursor: pointer;
}

.input-label {
  z-index: 10;
  cursor: pointer;
  width: 100%;
  height: 30px;
  padding: 9px 6px 7px 24px;
  position: relative;
  display: inline-block;
  word-break: break-all;
  font-size: 14px;
  line-height: 14px;
  vertical-align: middle;
}
.input-label .checkbox + i {
  position: absolute;
  top: 9px;
  left: 9px;
  display: inline-block;
  background: #ffffff;
  border-radius: 2px;
  height: 12px;
  width: 12px;
  overflow: hidden;
  margin-right: 3px;
}
.input-label .checkbox:checked + i {
  background-color: var(--color-orange);
}
.input-label .checkbox:checked + i::after {
  content: "";
  display: block;
  background: url(img/check.svg) no-repeat center 60%;
  background-size: 8px 8px;
  position: absolute;
  height: 8px;
  width: 8px;
  top: 2px;
  left: 2px;
}

h3 .input-label {
  font-size: 18px;
  font-weight: 700;
}

footer {
  z-index: 1;
  color: #ffffff;
  position: fixed;
  width: 100vw;
  bottom: 0;
  right: 0;
  padding: 20px;
  font-size: 14px;
  text-align: center;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  border-radius: 8px;
}

::-webkit-scrollbar-track {
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-dark);
  border-radius: 8px;
}

@media only screen and (max-device-width: 668px) {
  html, body {
    height: 100%;
    margin: 0;
    padding: 5px;
    box-sizing: border-box;
    overflow: auto;
    font-family: "Sofia Sans Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background: linear-gradient(-45deg, #3b486d, #7684b5, #59668f, #3b5c6d);
    background-size: 400% 400%;
    animation: Gradient 15s ease infinite;
  }
  #container {
    z-index: 2;
    width: 100%;
    height: auto;
    position: unset;
    display: grid;
    grid-gap: 10px;
    padding: 10px;
    box-sizing: border-box;
    grid-template-columns: 1fr;
    grid-template-rows: 30px 1fr 0 50px;
    grid-template-areas: "title" "result" "history" "button" "list";
    overflow: hidden;
    background-color: var(--color-light);
    border-radius: 10px;
  }
  #container::before {
    top: -5%;
    left: -5%;
    width: 300px;
    height: 300px;
    background-size: 300px 300px;
  }
  #title {
    font-size: 24px;
    line-height: 24px;
    text-align: center;
  }
  #leftColumn {
    z-index: 100;
    grid-area: result;
    overflow: hidden;
    border-radius: 6px;
  }
  #rightColumn {
    z-index: 100;
    overflow: hidden;
    grid-area: list;
  }
  /* 画像表示エリア */
  #result {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
  }
  #result:not(:has(div)) {
    font-size: 24px;
    display: block;
  }
  #result img {
    top: 0;
  }
  #result .overlay-text {
    padding: 0 5px;
  }
  #result .map-name {
    font-size: 36px;
  }
  #result .rule-name {
    font-size: 18px;
  }
  #result .country-label {
    right: 5px;
    font-size: 18px;
  }
  /* 履歴 */
  #history {
    display: none;
  }
  footer {
    z-index: 1;
    color: #ffffff;
    position: initial;
    width: 100%;
    bottom: 0;
    right: 0;
    padding: 20px;
    font-size: 14px;
    text-align: center;
  }
}

/*# sourceMappingURL=style.css.map */
