
body {
    font-family: 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #74ebd5, #ACB6E5);
    display: flex;
    flex-direction: column; /* 縦並びにする */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.ad-container {
    width: 100%;
    text-align: center; /* 広告を中央揃え */
    margin: 10px 0;
}

h1, h2 {
    margin-bottom: 1rem;
    color: #333;
}

p {
    margin: 1rem 0;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

input[type="url"] {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

button {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    border: none;
    border-radius: 999px; /* 丸ボタン */
    background-color: #4A90E2;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #357ABD;
}

.result a {
    font-size: 1.2rem;
    word-break: break-all;
    color: #4A90E2;
    text-decoration: none;
}

.result a:hover {
    text-decoration: underline;
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #4A90E2;
    color: white;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.button:hover {
    background-color: #357ABD;
}

.error {
    color: red;
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 0.75rem;
    text-align: center;
}

th {
    background-color: #f4f4f4;
}

a.action-link {
    color: #d9534f;
    text-decoration: none;
}

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