/* リセット + ベース */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    /* 動くグラデーション背景 */
    background: linear-gradient(270deg, #ff00cc, #3333ff, #00ffee, #ffcc00);
    background-size: 800% 800%;
    animation: gradientMove 15s ease infinite;

    color: white;
    text-align: center;
}

/* グラデーションアニメーション */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* メインタイトル */
h1 {
    margin-top: 80px;
    font-size: 2.5rem;
    letter-spacing: 2px;

    /* ネオン風 */
    text-shadow:
        0 0 5px #fff,
        0 0 10px #ff00cc,
        0 0 20px #ff00cc,
        0 0 40px #ff00cc;
}

/* サブテキスト */
p {
    margin-top: 20px;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* フッター */
footer {
    margin: 40px auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;

    /* ガラスモーフィズム */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 30px rgba(0,0,0,0.3);

    transition: transform 0.3s ease;
}

footer:hover {
    transform: scale(1.05) rotate(0.5deg);
}

/* リンク */
a {
    position: relative;
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* 下線アニメーション */
a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* ホバーで色変化 */
a:hover {
    color: #ffcc00;
}

/* ©部分 */
footer p:last-child {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.dvd {
    position: fixed;
    font-size: 2rem;
    font-weight: bold;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;

    text-shadow:
        0 0 5px #fff,
        0 0 10px #00ffee,
        0 0 20px #00ffee;
}

/* ===== タブレット（iPad想定） ===== */
@media (max-width: 1024px) {

    body {
        padding: 30px;
    }

    h1 {
        margin-top: 60px;
        font-size: 2.2rem;
    }

    p {
        font-size: 1.1rem;
    }

    footer {
        width: 90%;
        padding: 18px;
    }

    /* 横並び維持だが余白調整 */
    footer p:first-child {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    a {
        font-size: 1.05rem;
    }

    .dvd {
        font-size: 1.7rem;
    }
}


/* ===== スマホ（iPhone想定） ===== */
@media (max-width: 600px) {

    body {
        padding: 20px;
    }

    h1 {
        margin-top: 40px;
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    p {
        font-size: 1rem;
    }

    footer {
        width: 100%;
        padding: 15px;
        margin: 20px auto;
    }

    /* 縦並び */
    footer p:first-child {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    a {
        margin: 0;
        font-size: 1rem;
    }

    /* hover無効化 */
    a::after {
        display: none;
    }

    a:hover {
        color: #fff;
    }

    .dvd {
        font-size: 1.4rem;
    }
}