@import url("https://fonts.googleapis.com/css2?family=M+PLUS+2:wght@100..900&family=Montserrat:wght@100..900&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

html {
  scroll-behavior: smooth;
}

body {
  display: block;
  width: 100vw;
  min-height: 100dvh;
  background-color: #f7f9fc;
  color: #333;
  font-family: "Zen Kaku Gothic New", sans-serif;
  overflow-x: hidden;
}
body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}
body::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}
body::-webkit-scrollbar-track {
  background-color: #f7f9fc;
}

.suggest_dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 350px;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.suggest_dropdown::-webkit-scrollbar {
  width: 8px;
}
.suggest_dropdown::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 8px;
}
.suggest_dropdown::-webkit-scrollbar-track {
  background-color: transparent;
}
.suggest_dropdown .suggest_item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.suggest_dropdown .suggest_item:hover {
  background-color: #f0f5ff;
}
.suggest_dropdown .suggest_item img {
  width: 48px;
  height: 48px;
  -o-object-fit: contain;
     object-fit: contain;
  margin-right: 16px;
}
.suggest_dropdown .suggest_item span {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
}

section.select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: min(720px, 100% - 2rem);
  margin-block: 56px;
  margin-inline: auto;
}
section.select p.ttl {
  display: block;
  width: 100%;
  font-size: 1.5rem;
  font-weight: 700;
  color: #202020;
  margin-bottom: 20px;
}

.input_wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
}
.input_wrapper label {
  display: flex;
  align-items: center;
  width: 100%;
  height: 54px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding-inline: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}
.input_wrapper label:focus-within {
  border-color: #2020a0;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}
.input_wrapper label input {
  width: 100%;
  height: 100%;
  font-family: "Montserrat", "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  color: #202020;
  font-size: 1.1rem;
  border: none;
  outline: none;
  background-color: transparent;
  -webkit-user-select: all;
     -moz-user-select: all;
          user-select: all;
}
.input_wrapper label input::-moz-placeholder {
  color: #ccc;
}
.input_wrapper label input::placeholder {
  color: #ccc;
}

.select_container_1,
.select_container_2 {
  position: relative;
  display: flex;
  align-items: center;
  width: 48%;
  height: 64px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.select_container_1:hover,
.select_container_2:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.select_container_1 svg,
.select_container_2 svg {
  width: 64px;
  height: 64px;
  padding: 12px;
  padding-right: 0;
}
.select_container_1 p,
.select_container_2 p {
  flex: 1;
  font-family: "Zen Kaku Gothic New", sans-serif;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  padding-right: 12px;
}

.container_empty {
  background-color: #f0f0f0;
  border: 2px dashed #aaa;
  box-shadow: none;
}
.container_empty p {
  color: #999;
  font-size: 1.1rem;
  padding-right: 0;
}

span.divider {
  display: block;
  width: min(720px, 100% - 2rem);
  height: 1px;
  background-color: #ddd;
  margin-inline: auto;
}

section.result {
  width: min(720px, 100% - 2rem);
  margin-block: 36px;
  margin-inline: auto;
}
section.result > div {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
section.result p.ttl {
  font-family: "Montserrat", "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  color: #222;
  font-size: 1.25rem;
  margin-bottom: 16px;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
}

.type_badges_list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.type_badges_list .type_badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px 6px 6px;
  border-radius: 50px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.type_badges_list .type_badge svg {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  fill: #fff;
}

.type_modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.type_modal_overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.type_modal_overlay.active .type_modal {
  transform: translateY(0);
}
.type_modal_overlay .type_modal {
  background-color: #fff;
  width: min(600px, 90%);
  height: 90svh;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}
.type_modal_overlay .type_modal .modal_ttl {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: #222;
}
.type_modal_overlay .type_modal .type_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 16px;
  padding: 16px 24px;
}
.type_modal_overlay .type_modal .type_grid::-webkit-scrollbar {
  display: none;
}
.type_modal_overlay .type_modal .type_grid .type_btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background-color: #fff;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 0 12px 0px rgba(0, 0, 0, 0.2666666667);
}
.type_modal_overlay .type_modal .type_grid .type_btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px 0px rgba(0, 0, 0, 0.3333333333);
}
.type_modal_overlay .type_modal .type_grid .type_btn svg {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  fill: #fff;
}
.type_modal_overlay .type_modal .modal_close_btn,
.type_modal_overlay .type_modal .modal_clear_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(600px, 90%);
  margin-inline: auto;
  margin-top: 16px;
  padding-block: 16px;
  background-color: #f0f0f0;
  color: #444;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}
.type_modal_overlay .type_modal .modal_close_btn:hover,
.type_modal_overlay .type_modal .modal_clear_btn:hover {
  background-color: #e0e0e0;
}
.type_modal_overlay .type_modal .modal_close_btn.modal_clear_btn,
.type_modal_overlay .type_modal .modal_clear_btn.modal_clear_btn {
  background-color: #ffeded;
  color: #e62829;
  margin-top: 8px;
}
.type_modal_overlay .type_modal .modal_close_btn.modal_clear_btn:hover,
.type_modal_overlay .type_modal .modal_clear_btn.modal_clear_btn:hover {
  background-color: #ffd6d6;
}

.hidden {
  display: none !important;
}