/* エンディングノート 情報開示ページ CSS */

/* リセット・ベース */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ヘッダー */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ボタン */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    line-height: 1.4;
    text-align: center;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

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

/* メインコンテンツ */
.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* 認証セクション */
.auth-section {
    width: 100%;
    max-width: 500px;
}

.auth-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

.auth-card h2 {
    color: #495057;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.5rem;
}

.auth-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.7;
}

/* フォーム */
.auth-form {
    margin-bottom: 1.5rem;
}

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

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

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

/* アラート */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

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

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

/* ファイルアップロード */
.file-upload-group {
    margin-top: 1rem;
}

.file-upload-label {
    display: block;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 2px dashed #ced4da;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.file-upload-label:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.file-upload-input {
    display: none;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* 完了情報 */
.completion-info {
    margin-top: 1rem;
}

.completion-info h3 {
    color: #495057;
    margin-bottom: 1rem;
}

.completion-info ol {
    margin-bottom: 1.5rem;
}

.completion-info li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.completion-note {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.completion-note p {
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.completion-note p:last-child {
    margin-bottom: 0;
}

/* 注意事項 */
.auth-notes {
    border-top: 1px solid #dee2e6;
    padding-top: 1.5rem;
}

.auth-notes h3 {
    color: #495057;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.auth-notes ul {
    list-style: none;
    padding-left: 0;
}

.auth-notes li {
    padding: 0.25rem 0;
    color: #6c757d;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.2rem;
}

.auth-notes li::before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 開示セクション */
.disclosure-section {
    width: 100%;
    max-width: 800px;
}

.disclosure-header {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

.disclosure-header h2 {
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.disclosure-info {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 開示コンテンツ */
.disclosure-content {
    margin-bottom: 1.5rem;
}

.category-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

.category-title {
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f3f4;
}

.disclosure-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f3f4;
}

.disclosure-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.item-title {
    color: #495057;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.item-content {
    color: #6c757d;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 空の開示 */
.empty-disclosure {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #6c757d;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
}

/* アクション */
.disclosure-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

/* フッター */
.footer {
    background: #343a40;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.footer p:last-child {
    font-size: 0.8rem;
    color: #adb5bd;
}

/* 印刷スタイル */
@media print {
    .header,
    .disclosure-actions,
    .footer,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .main-container {
        padding: 0;
    }
    
    .disclosure-header,
    .category-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .category-title {
        color: black;
        border-bottom-color: #ddd;
    }
    
    .item-title {
        color: black;
    }
    
    .disclosure-info,
    .item-content {
        color: #333;
    }
}

/* レスポンシブ */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-right {
        justify-content: center;
    }
    
    .app-title {
        font-size: 1.1rem;
    }
    
    .main-container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .disclosure-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .disclosure-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}