body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}
.main-header {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.company-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.company-name {
    font-size: 1.8em;
    color: #0056b3;
    margin: 0;
    padding: 0;
    font-weight: bold;
}

.container {
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1, h2 {
    color: #0056b3;
    text-align: center;
    margin-bottom: 20px;
}
h2 {
    font-size: 1.6em;
}
p {
    margin-bottom: 15px;
}
fieldset {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}
legend {
    font-weight: bold;
    color: #0056b3;
    padding: 0 10px;
    margin-bottom: 10px;
    display: flex; /* 連番とテキストを横並びにする */
    align-items: center; /* 縦方向中央揃え */
}
.question-number { /* 動的に付与される番号のスタイル */
    margin-right: 5px;
    color: #0056b3;
    min-width: 1.5em; /* 番号がずれないように最小幅を設定 */
}
.required-indicator {
    color: #dc3545;
    font-size: 0.9em;
    margin-left: 5px;
}
.char-limit { /* 文字数制限の注記スタイル */
    font-size: 0.8em;
    color: #666;
    margin-left: 8px;
    font-weight: normal;
}
input[type="text"],
select,
textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
label {
    display: block;
    margin-bottom: 8px;
}
label input[type="checkbox"] {
    margin-right: 8px;
}
button, .button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-top: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
button:hover, .button:hover {
    background-color: #0056b3;
}
button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}
textarea#generatedReviewText {
    width: calc(100% - 20px);
    height: 150px;
    margin-bottom: 15px;
    resize: vertical;
}
.hidden {
    display: none;
}
#loading, #error {
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}
#loading {
    background-color: #e0f7fa;
    color: #007bff;
}
#error {
    background-color: #ffebee;
    color: #d32f2f;
}