header,
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 8px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="submit"],
.confirmation-btn {
  width: 100%;
  padding: 8px;
  font-size: 1.2rem;
  border-radius: 4px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
  background-color: rgba(0, 0, 255, 0.1);
  border: 2px solid rgba(0, 0, 255, 0.2);
  outline: none;
}

.checkbox-label-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-label {
  padding: 8px;
  font-size: 1.2rem;
  border-radius: 4px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.checkbox-label.kankyo {
  color: green;
}

.checkbox-label.hoso {
  color: blue;
}

.checkbox-label input[type="checkbox"] {
  display: inline-block;
  margin-right: 1rem;
}

.checkbox-label:has(input[type="checkbox"]:checked) {
  background-color: rgba(0, 0, 255, 0.1);
  border: 2px solid rgba(0, 0, 255, 0.2);
}

.tooltip {
  position: relative;
}

.tooltip .tooltip-content {
  display: none;
  position: absolute;
  bottom: 40px;
  left: 0;
  text-align: center;
  width: 180px;
  font-size: 0.8rem;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px;
  border-radius: 4px;
}

.tooltip:hover .tooltip-content {
  display: block;
  z-index: 10;
}

.guidance {
  border: rgb(255, 0, 0, 0.2) solid 1px;
  padding: 8px;
}

.guidance-title {
  background-color: rgb(255, 0, 0, 0.2);
  padding: 4px;
}

.guidance-list {
  padding-left: 1.5em;
}

.input-group {
  margin-bottom: 2em;
}

.input-title {
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 4px;
}

.input-note {
  color: #555;
  font-size: 0.8rem;
}
.validation-text {
  color: red;
  margin: 0;
}
.actions {
  text-align: center;
}
.confirmation-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  background-color: rgba(0, 0, 0, 0.2);
}
.confirmation-card {
  background-color: white;
  border-radius: 10px;
  padding: 2em;
  max-width: 80vw;
  max-height: 80vh;
  overflow-y: scroll;
  box-sizing: border-box;
}

.flex {
  display: flex;
  gap: 0.5em;
}
