/* 既存のスタイル */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}
h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}
.intro {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}
.question-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.question {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.question:last-child {
    border-bottom: none;
}
.question p {
    font-weight: bold;
    margin-bottom: 10px;
}
.options {
    display: flex;
    justify-content: space-between;
}
.options label {
    display: block;
    cursor: pointer;
    padding: 8px;
    text-align: center;
    flex: 1;
    margin: 0 5px;
    background-color: #f9f9f9;
    border-radius: 4px;
    transition: background-color 0.3s;
}
.options input {
    margin-right: 5px;
}
.options label:hover {
    background-color: #e9e9e9;
}
.submit-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s;
}
.submit-btn:hover {
    background-color: #2980b9;
}
.results-section {
    display: none;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}
.color-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    margin: 20px 0;
}
.color-box {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    border-radius: 8px;
}
.blue {
    background-color: #3498db;
    grid-row: 1;
    grid-column: 1;
}
.green {
    background-color: #2ecc71;
    grid-row: 1;
    grid-column: 2;
}
.red {
    background-color: #e74c3c;
    grid-row: 2;
    grid-column: 1;
}
.yellow {
    background-color: #f1c40f;
    grid-row: 2;
    grid-column: 2;
    color: #333;
}
.print-btn {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 20px;
}
.print-btn:hover {
    background-color: #1a2530;
}
.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}
.progress {
    height: 100%;
    background-color: #3498db;
    width: 0;
    transition: width 0.3s;
}
.debug-info {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 20px;
    font-family: monospace;
    white-space: pre-wrap;
}
@media print {
    body {
        background-color: white;
    }
    .question-section, .submit-btn, .print-btn, .intro, .progress-bar, .debug-info {
        display: none;
    }
    .results-section {
        display: block !important;
        box-shadow: none;
    }
}
/* 新しいスタイル */
.user-info-form {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #ddd;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.save-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 10px;
}
.save-btn:hover {
    background-color: #219653;
}
.save-status {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
}
.save-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.save-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.share-url {
    margin-top: 15px;
    padding: 10px;
    background-color: #eee;
    border-radius: 4px;
    word-break: break-all;
}
.social-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.social-button {
    padding: 8px 15px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    display: inline-block;
}
.twitter {
    background-color: #1da1f2;
}
.facebook {
    background-color: #3b5998;
}
.line {
    background-color: #00c300;
}
.history-btn {
    background-color: #9b59b6;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}
.history-btn:hover {
    background-color: #8e44ad;
}
.history-section {
    display: none;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}
.history-results {
    margin-top: 20px;
}
.history-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}
.search-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.search-btn:hover {
    background-color: #2980b9;
}
.back-btn {
    background-color: #7f8c8d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 20px;
}
.back-btn:hover {
    background-color: #6c7a7d;
}
