:root {
    --primary-color: #0056b3;
    --primary-hover: #004494;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --font-family: 'Noto Sans JP', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.content {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.icon-wrapper {
    color: var(--primary-color);
    margin-bottom: 24px;
    animation: bounce 2s infinite;
}

h1 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--text-color);
}

p {
    margin-bottom: 16px;
    color: #555;
}

.new-url-link {
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    margin: 20px 0;
    padding: 10px 20px;
    background-color: #eef2f7;
    border-radius: 8px;
    transition: background-color 0.3s;
    word-break: break-all;
}

.new-url-link:hover {
    background-color: #dfe7f0;
    text-decoration: underline;
}

.redirect-message {
    font-size: 14px;
    color: #777;
    margin-bottom: 32px;
}

#countdown {
    font-weight: bold;
    color: var(--primary-color);
}

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0, 50, 100, 0.2);
}

.button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 50, 100, 0.3);
}

.button:active {
    transform: translateY(0);
}

footer {
    margin-top: 40px;
    font-size: 12px;
    color: #999;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .content {
        padding: 30px 20px;
    }

    h1 {
        font-size: 20px;
    }

    .new-url-link {
        font-size: 16px;
    }
}