
body {
    margin: 0;
    background-color: #f8f6f2;
    color: #333;
    line-height: 1.6;
    font-family: "Hiragino Mincho ProN", "YuMincho", serif;
}

/* 横からフェードイン */
.fade-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.fade-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.fade-left.show,
.fade-right.show {
    opacity: 1;
    transform: translateX(0);
}

/* 遅延 */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}



#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #481d6e;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* くるくる */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #fff;
    font-size: 24px;
    animation: fade 1.5s infinite;
}

@keyframes fade {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}
h1 {
    background-color: #481d6e;
    color: #fff;
    padding: 30px;
    text-align: center;
}

.header {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1000;
    /* 他の要素より前に出す */
}

.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 10px;
}

.nav li {
    margin-right: 20px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

nav ul li {
    display: inline-grid;
    margin: 3px 15px;
}

nav ul li a {
    color: #481d6e;
    text-decoration: none;
    font-weight: bold;
}
.nav-btn {
    display: inline-grid;
    padding: 8px 16px;
    color: #852b7d;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #cf4014;
    color: #fff;
    transform: translateY(-3px);
}

.nav-btn:active {
    transform: translateY(0);
}

.hero {
    min-height: 100vh;
    padding: 80px 20px;
    background-color: #f8f6f2;
    color: #f8f6f2;
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
    position: relative;
    background-image: url(images/LINE_ALBUM_関西選手権_260421_2.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero::before {
    z-index: 0;
    content: "";
    position: absolute;
    inset: 0;

}

.hero::before,
.hero::after {
    pointer-events: none;
}
.hero h2,
.hero p {
    position: relative;
    z-index: 1;
}



.hero h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
}

.hero h2,
.hero p {
    position: relative;
    z-index: 2;
}

.news {
    background-color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.news h2 {
    font-size: 28px;
    margin-bottom: 20px;
    padding: 10px;
    border-bottom: 2px solid #721de1;
}

.news ul {
    list-style: none;
    padding: 0;
}

.news li {
    margin-bottom: 10px;
}

footer {
    background-color: rgb(116, 34, 136);
    color: #fff;
    text-align: center;
    padding: 10px;
}

.homepagelink {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 1rem;
}

.gaiyou {
    background-color: #fff;
    margin: 8px 4px 4px 8px;
}

a.sample_btn {
    border-radius: 8px;
    display: inline-block;
    width: 250px;
    text-align: center;
    text-decoration: none;
    line-height: 60px;
    color: #fff;
    background-color: #1b85fb;
}

a.sample_btn:hover {
    background-position: right center;
    background-size: 200% auto;
    -webkit-animation: pulse 2s infinite;
    animation: ripple 1.5s infinite;
    color: #fff;
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 #1b85fb;
    }

    70% {
        box-shadow: 0 0 0 10px rgb(27 133 251 / 0%);
    }

    100% {
        box-shadow: 0 0 0 0 rgb(27 133 251 / 0%);
    }
}

.nav-btn-homepagekandai {
    border-radius: 8px;
    display: inline-block;
    width: 500px;
    text-align: center;
    text-decoration: none;
    line-height: 60px;
    color: #fff;
    background-color: #330066;
}

.nav-btn-homepagekandai:hover {
    background-position: right center;
    background-size: 200% auto;
    -webkit-animation: pulse 2s infinite;
    animation: ripple 1.5s infinite;
    color: #fff;
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 #330066;
    }

    70% {
        box-shadow: 0 0 0 10px rgb(27 133 251 / 0%);
    }

    100% {
        box-shadow: 0 0 0 0 rgb(27 133 251 / 0%);
    }
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 #1005f1;
    }

    70% {
        box-shadow: 0 0 0 10px rgb(27 133 251 / 0%);
    }

    100% {
        box-shadow: 0 0 0 0 rgb(27 133 251 / 0%);
    }
}

/* ===== カード全体 ===== */
.card-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.card {
    position: relative;
    width: 250px;
    text-decoration: none;
    color: black;
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

/* 横並び */
.card-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* カード本体 */
.card {
    position: relative;
    width: 250px;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
}

/* 画像はみ出さないように */
.card {
    overflow: hidden;
}

/* 画像にアニメーション */
.card img {
    transition: transform 0.4s ease;
}

/* ホバーでズーム */
.card:hover img {
    transform: scale(1.1);
}

/* 画像 */
.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

/* タイトル */
.card p {
    position: absolute;
    bottom: 0;
    width: 100%;
    margin: 0;
    padding: 10px;
    color: white;
    text-align: center;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

/* 波紋（まずは見えるように強め） */
.card::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.5), transparent);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    transition: 0.5s;
}

/* ホバー */
.card:hover::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

/* ←これが正解 */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* ===== 全体を少し高級感ある感じに ===== */
body {
    background: linear-gradient(135deg, #f8f6f2, #ece7ff);
}

/* ===== セクション余白 ===== */
section {
    padding: 80px 20px;
}

/* ===== カードデザイン（トレカとか） ===== */
.card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* ホバーで浮く */
.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ===== 画像ズーム ===== */
.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.1);
}

/* ===== ボタン ===== */
button {
    background: linear-gradient(135deg, #6c3df4, #9f7bff);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    transition: 0.3s;
}

button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }

    section {
        padding: 50px 15px;
    }

    h1 {
        font-size: 24px;
    }

    .vs-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .vs-text {
        font-size: 40px;
    }

    .fade-left,
    .fade-right {
        width: 80%;
        max-width: none;
    }

    body {
        overflow-x: hidden;
    }

    .hero {
        height: 100dvh;
        background-attachment: scroll;
    }

    .hero::before {
        transform: none !important;
    }
    /* スマホではカードを縦並び */
.card-container {
    flex-direction: column;
    align-items: center;
}

/* カード幅調整 */
.card {
    width: 90%;
    max-width: 400px;
}
}

/* スマホで絶対はみ出さないように */
@media (max-width: 768px) {
    .fade-left {
        transform: translateX(-10px);
    }

    .fade-right {
        transform: translateX(10px);
    }

}

.fade-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.fade-images img {
    width: 45%;
    max-width: 500px;
    border-radius: 15px;
}


.card {
    position: relative;
    overflow: hidden;
}

/* 光がスッと流れる */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
    transform: skewX(-25deg);
    transition: 0.5s;
}

.card:hover::before {
    left: 125%;
}

.fade-left,
.fade-right {

    display: block;
    margin: 20px auto;
}

.fade-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.fade-left {
    margin-top: 20px;
}

.fade-right {
    margin-bottom: 20px;
}

.vs-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 60px 0;
    flex-wrap: wrap;
}

/* 画像サイズ（前やったやつ） */
.fade-left {
    width: 50%;
    height: 90%;
    max-width: 450px;
}

.fade-right {
    width: 50%;
    max-width: 450px;
}

/* VS */
.vs-text {
    font-size: 60px;
    font-weight: bold;
    color: #fff;

    /* バチバチ発光 */
    text-shadow:
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 40px #ff0000;

    animation: vs-glow 1s infinite alternate;
}

/* 点滅エフェクト */
@keyframes vs-glow {
    from {
        text-shadow:
            0 0 5px #ff0000,
            0 0 10px #ff0000;
    }

    to {
        text-shadow:
            0 0 20px #ff0000,
            0 0 40px #ff0000;
    }
}

/* チーム全体 */
.team {
    position: relative;
}

/* 画像 */
.team img {
    width: 100%;
    max-width: 350px;
    display: block;
}

/* 大学名 */
.team-name {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);

    color: #fff;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;

    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.5);

}

/* 色でチーム感出す */
.kandai {
    border: 1px solid #b266ff;
}

.kangaku {
    border: 1px solid #4da6ff;
}

.hero h2,
.hero p {
    opacity: 1;
}

/* 表示 */
.hero.show h2,
.hero.show p {
    opacity: 1;
}

/* ハンバーガー（通常は非表示） */
.hamburger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: #481d6e;
    cursor: pointer;
}

/* スマホ用 */
@media (max-width: 768px) {

    /* ハンバーガー表示 */
    .hamburger {
        display: block;
        margin: 10px;
    }

    /* メニュー隠す */
    .nav ul {
        display: none;
        flex-direction: column;
        background: #fff;
    }

    /* 開いたとき */
    .nav ul.active {
        display: flex;
    }

    .nav li {
        margin: 10px 0;
        text-align: center;
    }
}

/* 下からスライドイン */
.slide-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.6s ease;
}

.slide-up.show {
    opacity: 1;
    transform: translateY(0);
}
/* ===== フェードアニメーション最終版 ===== */
.fade-left,
.fade-right,
.slide-up {
    opacity: 0;
    transition: all 0.6s ease;
}

.fade-left {
    transform: translateX(-40px);
}

.fade-right {
    transform: translateX(40px);
}

.slide-up {
    transform: translateY(60px);
}

.show {
    opacity: 1;
    transform: translate(0);
}
.slide-up.show {
    opacity: 1;
    transform: translateY(0);
}

/*見どころのホームページのCSSコード*/
.kyudo-section {
    padding: 80px 20px;
    text-align: center;
    background: #f8f6f2;
}

.kyudo-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

/* グリッド */
.kyudo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

/* カード */
.kyudo-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: 0.3s;
}

/* ホバーで浮く */
.kyudo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.kyudo-card h3 {
    margin-bottom: 10px;
    color: #481d6e;
}

.kyudo-card p {
    line-height: 1.8;
    font-size: 14px;
}
/*背景画像のシルエット*/
.kyudo-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    background: #f8f6f2;
    overflow: hidden;
}

/* シルエット */
.kyudo-section::before {
    content: "";
    position: absolute;
    inset: 0;

    background: url(images/23692590.png) center/contain no-repeat;
    
    opacity: 0.05;  /* ←ここが超重要 */
    z-index: 0;
}

/* 文字を前に出す */
.kyudo-section * {
    position: relative;
    z-index: 1;
}

/* =========================
   SNS
========================= */

.social-section {

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;

    padding: 70px 20px;
}

/* 丸 */

.social-link {

    width: 65px;
    height: 65px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;

    text-decoration: none;

    background: rgba(255,255,255,0.05);

    border: 1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(10px);

    transition: 0.4s ease;
}

/* アイコン */

.social-link i {

    font-size: 30px;
    color: rgba(24, 23, 23, 0.85);

    transition: 0.4s ease;
}

/* ホバー */

.social-link:hover {

    transform:
        translateY(-8px)
        scale(1.08);

    background:
        rgba(140,90,255,0.18);

    box-shadow:
        0 0 25px rgba(140,90,255,0.45);
}

.social-link:hover i {

    color:rgba(24, 23, 23, 0.85);

    text-shadow:
        0 0 12px rgba(255,255,255,0.8);
}

/* スマホ */

@media (max-width: 768px) {

    .social-section {
        gap: 20px;
    }

    .social-link {

        width: 54px;
        height: 54px;
    }

    .social-link i {

        font-size: 24px;
    }
}
/* =========================
   来場者特典バッジ
========================= */

.tokuten-badge {

    position: fixed;

    right: 20px;
    bottom: 25px;

    width: 110px;
    height: 110px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #6c3df4,
            #b266ff
        );

    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    font-weight: bold;
    line-height: 1.5;

    z-index: 9999;

    box-shadow:
        0 10px 30px rgba(108,61,244,0.4),
        0 0 20px rgba(178,102,255,0.35);

    animation:
        floating 3s ease-in-out infinite,
        glowBadge 2s infinite alternate;

    backdrop-filter: blur(10px);
}

/* テキスト */

.tokuten-badge span {

    font-size: 16px;

    letter-spacing: 1px;
}

/* ふわふわ */

@keyframes floating {

    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* 発光 */

@keyframes glowBadge {

    from {

        box-shadow:
            0 0 10px rgba(178,102,255,0.3),
            0 10px 30px rgba(108,61,244,0.4);
    }

    to {

        box-shadow:
            0 0 25px rgba(178,102,255,0.6),
            0 10px 40px rgba(108,61,244,0.6);
    }
}

/* スマホ */

@media (max-width: 768px) {

    .tokuten-badge {

        width: 85px;
        height: 85px;

        right: 15px;
        bottom: 20px;
    }

    .tokuten-badge span {

        font-size: 13px;
    }
}
/* =========================
   カウントダウン
========================= */

.countdown-box {

    margin: 40px auto 0;

    display: flex;

    flex-direction: column;
    align-items: center;

    width: fit-content;

    padding: 20px 35px;

    border-radius: 20px;

    background:
        rgba(0,0,0,0.35);

    backdrop-filter: blur(10px);

    border:
        1px solid rgba(255,255,255,0.12);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.25);
}

/* タイトル */

.countdown-title {

    font-size: 14px;

    letter-spacing: 3px;

    color: rgba(255,255,255,0.7);

    margin-bottom: 10px;
}

/* 本体 */

.countdown {

    font-size: 42px;

    font-weight: bold;

    letter-spacing: 3px;

    color: #fff;

    text-shadow:
        0 0 10px rgba(255,255,255,0.35);
}

/* スマホ */

@media (max-width: 768px) {

    .countdown-box {

        padding: 15px 22px;
    }

    .countdown {

        font-size: 26px;
    }
}