/* Base layout */
.bg {
    background-color: #f5f5f5;
    min-height: 100vh;
}

.content {
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}
@media screen and (max-width: 350px) {
  .content {
      padding: 10px;
  }
}

.panel {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
}

.modal.show {
    display: block;
}

.modal-error-message {
    padding: 1rem 2rem;
    text-align: center;
    font-size: 1rem;
    color: red;
}

.modal-dialog {
    position: absolute;
    width: 95%;
    max-width: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 1.5rem 1rem 0 1rem;
}

.modal-body {
    padding: 0.5rem 1rem 1.5rem 1rem;
}

.alternative-modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-title {
    font-size: 1.25rem;
    text-align: center;
}

.modal-message {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
}

.alternative-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.spinner {
    display: none;
    margin: 20px auto;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;

}

.status {
    padding: 1.5rem 2rem;

}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Form styles */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0 0 1rem;
    margin-bottom: 1.5rem;
}

.form-check:last-child {
    margin-bottom: 0;
}

.form-check-input {
    margin-top: 0.3rem;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.button-primary:disabled {
    background-color: #d3d3d3; /* グレー */
    color: #ffffff; /* テキストカラー */
    cursor: not-allowed; /* カーソルを変更 */
    opacity: 0.6; /* 視覚的に無効化を強調 */
}
