:root {
    --primary-blue: #1e3a8a;
    --primary-red: #dc2626;
    --accent-gold: #fbbf24;
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #dc2626 100%);
    --gradient-accent: linear-gradient(45deg, #fbbf24, #f59e0b);
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background-image: url(../img/background.png);
}

/* ヘッダー */
.navbar {
    background: var(--gradient-primary) !important;
    padding: 1px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(30, 58, 138, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.2rem;
    font-weight: bold;
    color: white !important;

    img {
        width: 80px;
    }
}

.navbar-brand::before {
    margin-right: 0.5rem;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-gold) !important;
    transform: translateY(-2px);
}

.theme-toggle {
    background: none;
    border: 2px solid white;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: white;
    color: var(--primary-blue);
}

/* ダークモード */
[data-bs-theme="dark"] {
    --bs-body-bg: #1a1a1a;
    --bs-body-color: #ffffff;
}

[data-bs-theme="dark"] .card {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #2a2a2a !important;
}

/* ヒーローセクション */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circles" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23circles)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-date {
    font-size: 1.8rem;
    margin-bottom: 40px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    display: inline-block;
    animation: slideInUp 1s ease-out 0.4s both;
}


.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.6s both;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}


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


.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.floating-icon:nth-child(4) {
    top: 40%;
    right: 25%;
    animation-delay: 1s;
}

/* セクション共通 */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 3rem;
}

/* カード共通 */
.feature-card, .contest-card, .artist-card, .venue-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.feature-card:hover, .contest-card:hover, .artist-card:hover, .venue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;

    img {
        height: 150px;
    }
}

/* マダン説明セクション */
.madan-explanation {
    padding: 100px 0;
    /*background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);*/
    color: #333;
    text-align: left;

    background: linear-gradient(45deg, rgb(255, 236, 210), rgb(252, 182, 159), rgb(168, 237, 234), rgb(254, 214, 227), rgb(224, 195, 252)) 0% 0% / 400% 400%;
    animation: 30s infinite infinite-gradient;
}


@keyframes infinite-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.madan-content {
    max-width: 800px;
    margin: 0 auto;
}

.madan-description {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.95;
}


/* ダンスコンテスト */
.contest-timeline {
    position: relative;
}

.contest-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-badge {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 3rem;
}

/* 賞品セクション */
.prizes-section {
    background: var(--gradient-primary);
    color: white !important;
    padding: 80px 0;

    .section-title {
        -webkit-text-fill-color: inherit;
    }

}

.prize-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;

    ul {
        text-align: left;
    }
}

.prize-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.prize-icon {
    font-size: 3rem;
    margin-bottom: 1rem;

    img {
        width: 80px;
    }
}

/* アーティスト */
.artist-image {
    height: 400px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    border-radius: 10px 10px 0 0;

    @media (max-width: 768px) {
        height: auto;
    }


    img {
        height: 100%;
        width: 100%;
    }
}

.artist-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.status-confirmed {
    background: #28a745;
    color: white;
}

.status-pending {
    background: #ffc107;
    color: #000;
}


/* イベント詳細 */
.events {
    background: white;
    margin: 100px 0;
}

.event-timeline {
    display: grid;
    gap: 40px;

    .timeline-item {
        display: grid;
        grid-template-columns: 1fr 3fr;
        gap: 30px;
        align-items: center;
        padding: 30px;
        background: linear-gradient(135deg, #f8fafc, #e2e8f0);
        border-radius: 15px;
        border-left: 5px solid #dc2626;
    }

    .timeline-time {
        font-size: 1.5rem;
        font-weight: bold;
        color: #1e3a8a;
        text-align: center;
    }

    .event-timeline-content h3 {
        color: #dc2626;
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
}


/* 料金プラン */
.pricing-card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.pricing-card.featured {
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: '人気';
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent-gold);
    color: #000;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-red);
    margin: 1rem 0;
}

/* フォーム */
.application-section {
    background: var(--gradient-primary);
    color: #fff;
    padding: 80px 0;

    .section-title {
        -webkit-text-fill-color: inherit;
    }
}

.form-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-gold);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.25);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-label {
    color: white;
    font-weight: 500;
}

/* ボタン */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-custom {
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--accent-gold);
    color: #000;
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gradient-accent);
    border: none;
    color: #000;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

/* フッター */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
}

.footer h5 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-gold);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* アニメーション */
/*@keyframes float {*/
/*    0%, 100% {*/
/*        transform: translateY(0px);*/
/*    }*/
/*    50% {*/
/*        transform: translateY(-20px);*/
/*    }*/
/*}*/

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 12px;

        img {
            width: 50px;
        }
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-date {
        font-size: 2rem;
    }

    .contest-timeline::before {
        left: 30px;
    }

    .timeline-badge {
        left: 30px;
    }

    .timeline-content {
        margin-left: 70px;
        margin-right: 0;
    }

    .section-title {
        font-size: 2rem;
    }


    .event-timeline {
        .timeline-item {
            grid-template-columns: 1fr;
            text-align: center;
        }
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem !important;
        white-space: wrap;
    }

    .hero-date {
        font-size: 1rem;
    }

    .form-container {
        padding: 2rem 1rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}



/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(45deg, #001122 0%, #003366 50%, #004488 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 20% 20%, rgba(255, 0, 64, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 40% 60%, rgba(255, 0, 64, 0.05) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 0, 64, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(255, 0, 64, 0.5); }
    to { text-shadow: 0 0 30px rgba(255, 0, 64, 0.8), 0 0 40px rgba(255, 0, 64, 0.3); }
}

.hero p {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #ff0040 0%, #ff6b6b 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 0, 64, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 0, 64, 0.5);
}



#sidenavi {
    position: fixed;
    right: 0;
    top: 170px;
    width: 65px;
    z-index: 1000;
}
#sidenavi a {
    display: block;
    width: 100%;
    max-height: 292px;
    padding: 30px 15px;
    background: #e28a17;
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.1em;
    text-align: center;
    text-decoration: none;
}
#sidenavi a:hover {
    background: #eead58;
}

@media screen and (max-width: 768px) {
    #sidenavi a {
        /*writing-mode: vertical-rl;*/
        /*text-wrap: inherit;*/
    }

    #sidenavi {
        position: fixed;
        right: 0;
        top: auto;
        bottom: 0;
        width: 100%;
    }
    #sidenavi a {
        display: block;
        width: 100%;
        /*max-height: 100%;*/
        padding: 10px 5px;
        font-size: 12px;
    }
    #sidenavi a:hover {
        background: #e28a17;
    }
}





/********************************************
スクロール
********************************************/
#scrollUp {
    bottom: 30px;
    right: 30px;
    background-color: #888;
    color: #fff;
    text-decoration: none;
    text-align: center;
    width: 50px;
    height: 50px;
    padding-top: 13px;
    transition: background 200ms linear;
}

@media (max-width: 991.98px) {
    #scrollUp {
        bottom: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        padding-top: 7px;
    }
}
