*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f7f6;
    color: #333;
}

h1 {
    color: #444;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin-top: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #555;
}

input,
select {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

input:focus,
select:focus {
    border-color: #666;
    outline: none;
}

.checkbox-wrapper {
    margin-top: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
}

.checkbox-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 10px 0 0;
    accent-color: #555;
}

button {
    width: 100%;
    padding: 15px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 30px;
    cursor: pointer;
    transition: opacity 0.2s;
}

button:hover {
    opacity: 0.8;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#status {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    min-height: 1.5em;
}

.note {
    font-size: 0.8em;
    color: #888;
    margin-top: 5px;
    margin-left: 2px;
}

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

#pageTotal {
    margin-left: 10px;
    font-weight: bold;
}

#pageTotal.ok {
    color: #4CAF50;
}

#pageTotal.warn {
    color: #ff4757;
}

.checkbox-label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

.sub-label {
    margin-top: 10px;
    font-size: 0.85em;
    font-weight: normal;
}

.preview-title {
    text-align: center;
    margin-top: 40px;
    color: #ff6b6b;
}

#feedback-footer {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 20px;
}

#feedbackLink {
    color: #999;
    text-decoration: none;
    font-size: 0.85em;
    transition: color 0.3s;
}

#preview-container {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 50px;
    background-color: #5a5a5a;
    padding: 20px;
    border-radius: 8px;
    overflow: hidden;
}

#previewCanvas {
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);

    width: 100%;
    height: auto;
    vertical-align: bottom;
}
