/* monomane カスタムスタイル */
@import url('common.css');

:root {
    --primary-color: #b7cf29;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* 認証ページのスタイル */
.auth-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.auth-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    margin-bottom: 1rem;
}

.auth-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    max-width: 100%;
}


.auth-subtitle {
    color: #666;
    font-size: 0.9rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-auth {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.btn-auth:hover {
    background-color: #a0b825;
    border-color: #a0b825;
}

.btn-auth:focus {
    box-shadow: 0 0 0 0.2rem rgba(183, 207, 41, 0.5);
}

.auth-links {
    text-align: center;
    margin: 1rem 0;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-link:hover {
    color: #a0b825;
    text-decoration: underline;
}

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

.auth-footer p {
    color: #6c757d;
    font-size: 0.8rem;
    margin: 0;
}

.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
}

.alert.show {
    opacity: 1;
    transform: translateY(0);
}

.alert.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* 新規登録ページのスタイル */
.auth-step {
    margin-bottom: 2rem;
}

.auth-step h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.text-center {
    text-align: center;
}

.step-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.step-note {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.dev-notice {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.dev-notice code {
    background-color: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.9rem;
}

.optional {
    color: #6c757d;
    font-size: 0.8rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-top: 0.2rem;
}

.checkbox-text {
    color: #333;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions .btn {
    flex: 1;
}

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

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* 確認画面のスタイル */
.confirm-section {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.confirm-section h5 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.confirm-item {
    display: flex;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.confirm-label {
    font-weight: 500;
    color: #666;
    min-width: 120px;
    margin-right: 1rem;
}

.confirm-value {
    color: #333;
    flex: 1;
}

/* ダッシュボードのスタイル */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-header {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.sidebar .nav-link {
    color: #333;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar .nav-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
}

.user-info {
    margin-bottom: 1rem;
}

.user-name {
    font-weight: 500;
    color: #333;
}

.user-email {
    font-size: 0.8rem;
    color: #666;
}

.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.text-xs {
    font-size: 0.7rem;
}

.text-uppercase {
    text-transform: uppercase;
}

.font-weight-bold {
    font-weight: 700;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.shadow {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 利用規約モーダルのスタイル */
.terms-content {
    max-height: 60vh;
    overflow-y: auto;
}

.terms-header {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.terms-header h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.terms-section {
    margin-bottom: 1.5rem;
}

.terms-section h5 {
    color: var(--dark-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 0.75rem;
}

.terms-section p {
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.terms-section ul {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.terms-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
