﻿        :root {
            --primary-color: #4a90e2;
            --primary-hover: #357abd;
            --secondary-bg: #f8f9fa;
            --accent-color: #2ecc71;
            --accent-hover: #27ae60;
            --error-color: #e74c3c;
            --text-color: #2c3e50;
            --border-radius: 12px;
            --shadow: 0 4px 15px rgba(0,0,0,0.08);
        }

        /* --- 基本レイアウト --- */
        body {
            font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
            background-color: #f0f2f5;
            color: var(--text-color);
            margin: 0;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            min-height: 100vh;
        }

        .container {
            background-color: #ffffff;
            width: 100%;
            max-width: 650px;
            padding: 40px;
            border-radius: 16px;
            box-shadow: var(--shadow);
        }

        .header {
            text-align: center;
            margin-bottom: 30px;
        }

        .header h1 {
            margin: 0;
            font-size: 28px;
            color: var(--primary-color);
            font-weight: 700;
        }

        /* --- 入力セクション --- */
        .input-group {
            margin-bottom: 25px;
        }

        .label-text {
            display: block;
            margin-bottom: 10px;
            font-weight: bold;
            font-size: 14px;
        }

        input[type="password"] {
            width: 100%;
            padding: 14px;
            border: 2px solid #edf2f7;
            border-radius: var(--border-radius);
            box-sizing: border-box;
            font-size: 16px;
            transition: border-color 0.3s;
            outline: none;
        }

        input[type="password"]:focus {
            border-color: var(--primary-color);
        }

        /* --- 画像アップロード --- */
        .drop-zone {
            border: 2px dashed #cbd5e0;
            border-radius: var(--border-radius);
            padding: 40px 20px;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
            background-color: var(--secondary-bg);
        }

        .drop-zone:hover, .drop-zone.drag-over {
            border-color: var(--primary-color);
            background-color: #ebf4ff;
        }

        .drop-zone p {
            margin: 0;
            font-size: 15px;
            color: #718096;
        }

        .preview-area {
            margin-top: 20px;
            text-align: center;
            display: none;
        }

        .preview-area img {
            max-width: 100%;
            max-height: 250px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        /* --- ボタン --- */
        .btn {
            width: 100%;
            height: 56px; /* スマホで押しやすい高さ */
            border: none;
            border-radius: var(--border-radius);
            font-size: 17px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 15px;
        }

        .btn:active {
            transform: translateY(2px);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-primary:hover {
            background-color: var(--primary-hover);
        }

        .btn-secondary {
            background-color: var(--accent-color);
            color: white;
        }

        .btn-secondary:hover {
            background-color: var(--accent-hover);
        }

        .btn:disabled {
            background-color: #cbd5e0;
            cursor: not-allowed;
            box-shadow: none;
        }

        /* --- 解析結果（カードデザイン） --- */
        .result-card {
            margin-top: 30px;
            padding: 25px;
            background-color: #fff;
            border: 1px solid #edf2f7;
            border-radius: var(--border-radius);
            box-shadow: 0 2px 10px rgba(0,0,0,0.03);
            display: none; /* 解析成功まで非表示 */
        }

        .result-row {
            display: flex;
            padding: 12px 0;
            border-bottom: 1px solid #f7fafc;
        }

        .result-row:last-child {
            border-bottom: none;
        }

        .result-label {
            width: 110px;
            font-weight: 800;
            color: #4a5568;
            flex-shrink: 0;
        }

        .result-value {
            color: var(--text-color);
            word-break: break-all;
        }

        /* --- ステータス表示 --- */
        .status-container {
            margin-top: 25px;
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            font-size: 14px;
            font-weight: 600;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            white-space: pre-wrap;
            line-height: 1.8;
            transition: all 0.3s;
        }

        .status-idle { background-color: #edf2f7; color: #718096; }
        .status-loading { background-color: #feebc8; color: #9c4221; }
        .status-success { background-color: #c6f6d5; color: #22543d; }
        .status-error { background-color: #fed7d7; color: #822727; }

        @media (max-width: 480px) {
            .container { padding: 20px; }
            .result-label { width: 90px; }
        }