@charset "UTF-8";

/* サイト全体の色合いやフォントの設定です */
:root {
    --bg-color: #fff9f5;
    --card-bg: #ffffff;
    --text-main: #5c4e46;
    --text-light: #8c7c75;
    --accent-color: #ff9d76;
    --accent-hover: #ff8b5c;
    --border-color: #faebd7;
    --shadow: 0 10px 30px rgba(255, 157, 118, 0.1);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'IBM Plex Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 20px;
}

/* メッセージが表示される中央のカード */
.card {
    background-color: var(--card-bg);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid var(--border-color);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* キラキラアイコンのアニメーション */
.icon {
    font-size: 48px;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

h1 {
    font-size: 22px;
    margin: 0 0 20px;
    color: var(--text-main);
    line-height: 1.5;
}

.message {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* URLを囲むボックス */
.url-box {
    background-color: #fffaf7;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px dashed var(--accent-color);
}

.url-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.label {
    font-size: 12px;
    font-weight: bold;
    color: var(--accent-color);
    letter-spacing: 0.05em;
}

.url-text {
    font-size: 13px;
    word-break: break-all;
    font-family: monospace;
    /* URLが見やすいように等幅フォント */
}

.url-item.old .url-text {
    color: var(--text-light);
    text-decoration: line-through;
    /* 旧URLは取り消し線をつける */
}

/* 下矢印 */
.arrow {
    font-size: 20px;
    color: var(--accent-color);
    margin: 15px 0;
}

/* 新しいURLへのリンクボタン */
.url-link {
    color: white;
    background-color: var(--accent-color);
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 157, 118, 0.3);
}

.url-link:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 157, 118, 0.4);
}

/* リダイレクトの案内テキスト */
.redirect-info {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

#countdown {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 16px;
    margin: 0 2px;
}

/* スマホ用の調整 */
@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
    }

    h1 {
        font-size: 18px;
    }
}