/* Team Attendance (Simple RSVP) - Frontend Styles */
.ta-item {
  font-size: 16px;
  line-height: 1.7;
  border: 1px solid #ccc;
  padding: 1.2em;
  margin-bottom: 2em;
  border-radius: 8px;
}

.ta-item h3.ta-title {
  font-size: 1.6em !important;
  margin-top: 0 !important;
  margin-bottom: 0.5em !important;
}

.ta-item h6 {
  font-size: 1.1em;
  font-weight: bold;
  margin: .5em 0;
}

.ta-desc {
  margin-bottom: 1.5em;
}

.ta-btn,
.ta-btn-red {
  display: inline-block;
  padding: 0.8em 1.5em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 0.5em;
}

.ta-btn {
  border: 1px solid #1d4ed8;
  background: #2563eb;
  color: #fff;
}
.ta-btn:hover {
  background: #1d4ed8;
}

.ta-btn-red {
  border: 1px solid #b91c1c;
  background: #ef4444;
  color: #fff;
}
.ta-btn-red:hover {
  background: #dc2626;
}

.ta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  align-items: center;
  margin: 1.5em 0;
}

.ta-acc details {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin: .5em 0;
}

.ta-acc summary {
  cursor: pointer;
  list-style: none;
  padding: .8em 1em;
  position: relative;
  font-weight: bold;
  font-size: 1.2rem;
}

.ta-acc summary::marker,
.ta-acc summary::-webkit-details-marker {
  display: none;
}

.ta-acc summary:after {
  content: "▼";
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  transition: transform .2s;
}

.ta-acc details[open] summary:after {
  transform: translateY(-50%) rotate(-180deg);
}

.ta-acc-body {
  padding: 0 1.2em 1em;
}
.ta-list {
  padding-left: 1.5em;
  font-size: 1rem;
}

.ta-list li {
  margin-bottom: 0.8em;
}

.ta-list-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ta-edit-btn {
  padding: 0.2em 0.6em;
  font-size: 0.8rem;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-weight: normal;
  line-height: 1.4;
}
.ta-edit-btn:hover {
  background: #e0e0e0;
}

.ta-color-swatch {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
  border: 1px solid #000;
  flex-shrink: 0;
}

.ta-comment {
  font-size: 0.95em;
  color: #374151;
  padding-left: 1em;
  border-left: 3px solid #eee;
  margin-top: 0.3em;
}

.ta-note {
  font-size: .9em;
  color: #6b7280;
  margin: 1em 0;
}

.ta-form {
  margin-top: 1.5em;
  padding: 1.5em;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.ta-form p {
  margin-bottom: 1.5em;
}

.ta-form p.ta-pants-color-field {
  margin-bottom: 0.25em;
}

.ta-form label.ta-field-label {
  font-weight: bold;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5em;
}

.ta-form input[type="text"],
.ta-form textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.8em;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.ta-form .ta-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ta-form .ta-button-group input[type="radio"],
.ta-form .ta-checkbox-button input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ta-form .ta-button-group label,
.ta-form .ta-checkbox-button label {
  display: inline-block;
  padding: 0.8em 1.2em;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition: all .2s ease;
  text-align: center;
}

.ta-form .ta-button-group input[type="radio"]:checked+label,
.ta-form .ta-checkbox-button input[type="checkbox"]:checked+label {
  background-color: #2563eb;
  color: #fff;
  border-color: #1d4ed8;
  font-weight: bold;
}

.ta-form .ta-checkbox-button input[type="checkbox"]:checked+label {
  background-color: #10b981;
  border-color: #059669;
}

.ta-color-group label {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  padding: 0.6em 1em;
}

.ta-color-group input[type="radio"]:checked+label {
  background-color: #fff;
  border-color: #1d4ed8;
  box-shadow: 0 0 5px rgba(37, 99, 235, 0.5);
  font-weight: bold;
}

.ta-submit {
  width: 100%;
  max-width: 400px;
  padding: 1em;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
}
.ta-submit:hover {
  background: #1d4ed8;
}

.ta-pager {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 1.5em 0;
}

.ta-pager a,
.ta-pager span {
  min-width: 40px;
  text-align: center;
  padding: .6em .8em;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
}

.ta-pager a:hover {
  background: #f3f4f6;
}

.ta-pager .is-active {
  background: #2563eb;
  color: #fff;
  border-color: #1d4ed8;
}

.ta-add-wrap {
  text-align: center;
  margin-top: 1.5em;
}

/* Modal Styles */
body.ta-modal-open {
  overflow: hidden;
}

.ta-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none; /* JSで 'flex' に変更 */
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.ta-modal-content {
  background-color: #fff;
  padding: 2em;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.ta-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  border: none;
  background: transparent;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  color: #aaa;
  cursor: pointer;
}
.ta-modal-close:hover {
  color: #333;
}

.ta-form .ta-form-actions {
  display: flex;
  gap: 1em;
  align-items: center;
}

.ta-form .ta-cancel-btn {
  flex-grow: 1;
  padding: 1em;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  color: #333;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  text-align: center;
}
.ta-form .ta-cancel-btn:hover {
  background-color: #e0e0e0;
}

.ta-form .ta-submit {
  flex-grow: 2;
}