body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-weight: normal;
    font-size: 1.5rem;
}

.header-image {
    text-align: center;
}

img {
    height: 200px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input[type="url"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

input[type="url"]:focus {
    border-color: #4CAF50;
    outline: none;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

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

/* hcaptchaスタイル */
.h-captcha {
    margin: 10px 0;
}

.result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.loading {
    text-align: center;
    color: #666;
}

.file-link {
    margin-top: 10px;
}

.file-link a {
    color: #007bff;
    text-decoration: none;
}

.file-link a:hover {
    text-decoration: underline;
}

/* 履歴関連のスタイル */
.history-container {
    margin-top: 30px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.history-container h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-info {
    flex: 1;
}

.history-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.history-details {
    color: #666;
    font-size: 14px;
}

.history-time {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

.history-actions {
    display: flex;
    gap: 10px;
}

.history-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
}

.download-btn {
    background-color: #28a745;
    color: white;
}

.download-btn:hover {
    background-color: #218838;
}