* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

[v-cloak] {
    display: none;
}

.container {
    max-width: 760px;
    margin: 40px auto 20px;
    background-color: #fff;
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#app {
    min-height: 300px;
}

.ready-scope {
    opacity: 0;
    transition: opacity 0.28s ease;
}

.ready-scope.is-ready {
    opacity: 1;
}

.form-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 14px;
}

.form-description {
    font-size: 14px;
    color: #555;
    white-space: pre-line;
}

.form-description + .form-description {
    margin-top: 8px;
}

.datasign-wrapper {
    margin-top: 18px;
}

/* TODO(cleanup): 以下の language selector スタイルは
   translate/components/changeLangOption.js にも同内容を重複定義済み。
   参照箇所の移行完了後、このブロックを削除しやすいように残しています。 */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.lang-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.lang-select {
    padding: 6px 24px 6px 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 14px;
}

.lang-select:hover {
    border-color: #3498db;
}

.lang-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.page-footer {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin: 6px 0 0;
}

@media (max-width: 640px) {
    body {
        padding: 10px;
    }

    .container {
        margin: 20px auto 12px;
        padding: 20px;
    }

    .form-title {
        font-size: 20px;
    }

    #app {
        min-height: 300px;
    }
}
