body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    padding: 20px;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 480px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #000;
    margin: -30px -30px 30px -30px;
    border-radius: 12px 12px 0 0;
}

.logo {
    height: 60px;
    width: auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.5rem;
}

label {
    display: block;
    margin-top: 20px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

select, input, textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    background-color: #fafafa;
    transition: all 0.3s ease;
    font-size: 1rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: #333;
}

select {
    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 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* iOSでのデフォルトスタイルをリセット */
select, input[type="text"], textarea {
    -webkit-text-fill-color: #333;
    opacity: 1;
}

/* プレースホルダーの色も調整 */
::placeholder {
    color: #999;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #999;
}

::-ms-input-placeholder {
    color: #999;
}

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

button {
    padding: 14px;
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
    margin-top: 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
}

button:hover {
    background-color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: translateY(0);
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.button-group button {
    flex: 1;
    margin-top: 0;
}

.button-group button:first-child {
    background-color: transparent;
    border: 2px solid #000;
    color: #000;
}

.button-group button:first-child:hover {
    background-color: #000;
    color: #fff;
}

.button-group button:last-child {
    background-color: #95a5a6;
    border: 2px solid #95a5a6;
    color: #fff;
}

.button-group button:last-child:hover {
    background-color: #7f8c8d;
    border-color: #7f8c8d;
}

.generate-button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.generate-button-group button {
    flex: 1;
    margin-top: 0;
}

.save-btn {
    background-color: #27ae60 !important;
    border: 2px solid #27ae60 !important;
    color: #fff !important;
}

.save-btn:hover {
    background-color: #219a52 !important;
    border-color: #219a52 !important;
}

#reportHistory {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

#reportHistory h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.delete-all-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 15px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.delete-all-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.notice {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin: 10px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
}

.report-item {
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-content {
    flex: 1;
    cursor: pointer;
}

.report-item:hover {
    background: #f0f8ff;
    border-color: #3498db;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.delete-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.report-item strong {
    color: #2c3e50;
    font-size: 1rem;
}

.report-preview {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
    line-height: 1.4;
}

#hideHistoryBtn {
    background-color: #95a5a6;
    margin-top: 10px;
}

#hideHistoryBtn:hover {
    background-color: #7f8c8d;
}

/* レスポンシブ対応 */
@media screen and (max-width: 480px) {
    body {
        padding: 10px;
        font-size: 14px;
    }

    .container {
        padding: 20px;
        border-radius: 8px;
    }

    select, input, textarea {
        padding: 12px;
        font-size: 16px;
        border-radius: 8px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    select {
        background-position: right 12px center;
        background-size: 16px;
        padding-right: 40px;
    }

    button {
        padding: 12px;
        font-size: 14px;
        letter-spacing: 1px;
    }

    #reportHistory {
        padding: 15px;
        margin: 15px 0;
    }

    .report-item {
        padding: 12px;
    }
}
