:root {
    --gold: #ffd700;
    --gold-dark: #b8860b;
    --red: #d32f2f;
    --red-dark: #b71c1c;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, #ff5252 100%);
    color: white;
    text-align: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    margin-bottom: 3rem;
    animation: bounceIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.title {
    font-family: 'Yusei Magic', sans-serif;
    font-size: 3.5rem;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 20px rgba(255, 215, 0, 0.6);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* 祈願セクション */
.kigan-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 0 20px rgba(255, 215, 0, 0.2);
}

.glow-button {
    background: linear-gradient(45deg, var(--gold), #fff700, var(--gold));
    background-size: 200% auto;
    color: var(--red-dark);
    font-size: 2rem;
    font-weight: 800;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
    animation: shine 3s linear infinite;
}

.glow-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
}

.glow-button:active {
    transform: scale(0.95);
}

#kigan-result {
    margin-top: 1rem;
    animation: fadeIn 0.5s ease;
}

#kigan-result h2 {
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

#kigan-result p {
    font-size: 1.3rem;
    line-height: 1.6;
    font-weight: bold;
}

.hidden {
    display: none !important;
}

/* 動画セクション */
.video-section {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.video-section h2 {
    color: var(--gold);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px; /* 縦長になりすぎないよう最大幅を制限 */
    margin: 0 auto;
    aspect-ratio: 9 / 16; /* 縦型の比率 */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 2px solid var(--gold-dark);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
}

footer {
    margin-top: 3rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* アニメーション */
@keyframes shine {
    to { background-position: 200% center; }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

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

@media (max-width: 600px) {
    .title { font-size: 2.2rem; }
    .glow-button { font-size: 1.5rem; padding: 1rem 2rem; }
    .kigan-section { padding: 2rem 1rem; }
}
