/* == モーダルスタイル == */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #2c2c2c;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
  color: white;
  margin-top: 50px;
  margin-bottom: 50px;
  max-height: 80vh;
  overflow-y: auto;
}

.nfc-box {
  width: 100%;
  min-width: 200px;
  padding: 10px 10px 10px;
  border-radius: 5px;
  border: 1px solid #555555;
  outline: none;
  font-size: 1rem;
  background-color: #444444;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.nfc-button {
  padding: 8px 12px;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: fit-content;
  display: flex;
  align-items: center;
}

.nfc-button:hover {
  background-color: #0056b3;
}

.open-button {
  padding: 8px 12px;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: fit-content;
  display: flex;
  align-items: center;
}

.open-button:hover {
  background-color: #0056b3;
}

.close-button {
  color: white;
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Information */
.modal_information {
  margin: 0 auto;
  background-color: #2c2c2c;
  border-radius: 10px;
  padding: 0;
  width: 100%;
}

.modal_information input[type="radio"] {
  display: none;
}

.modal_information .tab_labels {
  display: flex;
  position: sticky;
  top: 0;
  background-color: #2c2c2c;
  z-index: 10;
  border-bottom: 1px solid #555555;
}

.modal_information .modal_tabitem {
  flex: 1;
  margin: 0;
  padding: 15px;
  text-align: center;
  color: #bbbbbb;
  cursor: pointer;
  transition: color 0.3s ease;
  border-bottom: 5px solid transparent;
}

.modal_information .modal_tabitem:hover {
  color: #ffffff;
}

.modal_information
  input[type="radio"]:checked
  + .tab_labels
  label[for="modal_tab1"],
.modal_information
  input[type="radio"]:checked
  + .tab_labels
  label[for="modal_tab2"],
.modal_information
  input[type="radio"]:checked
  + .tab_labels
  label[for="modal_tab3"] {
  color: #ffffff;
}

#modal_tab1:checked ~ .tab_labels label[for="modal_tab1"] {
  border-bottom: 5px solid #00bcd4;
}

#modal_tab2:checked ~ .tab_labels label[for="modal_tab2"] {
  border-bottom: 5px solid #ff5722;
}

#modal_tab3:checked ~ .tab_labels label[for="modal_tab3"] {
  border-bottom: 5px solid #03a9f4;
}

.modal_content {
  display: none;
  padding: 20px;
}

#modal_tab1:checked ~ #modal_content1,
#modal_tab2:checked ~ #modal_content2,
#modal_tab3:checked ~ #modal_content3 {
  display: block;
}

/* Information box */
.modal_info {
  overflow-x: hidden;
  margin: 0 auto;
  color: #cccccc;
}

.modal_infobox {
  padding: 20px 0;
  border-bottom: 1px dotted #555555;
}

.modal_infobox input[type="checkbox"] {
  display: none;
}

.modal_infobox label {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 10px 0 48px;
  cursor: pointer;
  color: #bbbbbb;
}

.modal_infobox label:before {
  content: "\f067";
  font-family: "FontAwesome";
  font-size: 1.2em;
  position: absolute;
  left: 15px;
  top: 10px;
  transition: transform 0.2s ease;
}

.modal_infobox-content {
  position: relative;
  overflow: hidden;
  height: 0;
  margin: 0 10px 0 48px;
  padding: 0;
  transition: height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  color: #dddddd;
}

.modal_infobox input[type="checkbox"]:checked ~ .modal_infobox-content {
  height: auto;
  padding: 14px 0;
  opacity: 1;
}

.modal_infobox input[type="checkbox"]:checked + label:before {
  transform: rotate(45deg);
  color: #ffffff;
}
