/*
Theme Name: gakusai
Description: 獅子児祭 2026 公式テーマ（スティッキーフッター完全修正版）
Version: 5.3
*/

/* --- 0. グローバルリセット & ボックスモデルの統一 --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* --- 1. ページ全体の高さ制御（基盤の再定義） --- */
html {
    height: auto;
    /* Safariの誤算を防止 */
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* 横揺れ防止 */
}

#page,
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--bg-white);
    /* ここでコンテンツの白を担保 */
    overflow-x: hidden; /* 横揺れ防止 */
}

/* ホームでは背景を透過させ、bodyの青を見せる */
body.home .site,
body.front-page .site {
    background-color: transparent;
}

/* メインコンテンツを伸長させてフッターを押し下げる */
main,
.site-main,
.l-main,
.hero {
    flex: 1 0 auto;
    width: 100%;
    /* 幅を確保 */
}

/* フッターは縮小しない */
.site-footer {
    flex-shrink: 0;
}

/* --- 2. メインレイアウト & コンポーネント --- */
.hero {
    padding: 60px 0 100px;
    position: relative;
    width: 100%;
}

.hero-inner {
    display: flex;
    justify-content: space-between;
    padding: 0 120px;
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
}

.front-hero {
    position: relative;
    width: 100%;
    height: clamp(600px, 100vh, 1080px);
    overflow: hidden;
    background: linear-gradient(to bottom, #ffffff 0%, #6ec1ff 40%, #1f80c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    /* パララックス用 */
}

/* --- オープニングアニメーション用初期状態 --- */
.js-opening-el {
    opacity: 0;
    filter: blur(10px);
    will-change: opacity, filter, transform;
    backface-visibility: hidden;
    transform: scale(1.05) translate3d(0, 0, 0);
    transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1),
        filter 1.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-opening-el.is-active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) translate3d(0, 0, 0);
}

/* タイトル専用のリッチな登場 */
.main-title-wrap {
    overflow: hidden;
}

.main-title {
    display: inline-block;
    letter-spacing: 0.5em;
    /* 最初は広げる */
    transition: letter-spacing 2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}

.js-opening-el.is-active .main-title {
    letter-spacing: 0.05em;
    /* 締める */
}

/* 花共通 */
.flower {
    position: absolute;
    z-index: 29;
    pointer-events: none;
}

/* 青花（左上） */
.blue {
    top: -5%;
    left: 15%;
    width: clamp(200px, 40vw, 600px);
}

/* 緑花（下中央） */
.green {
    bottom: -10%;
    left: 20%;
    width: clamp(300px, 45vw, 650px);
}

/* オレンジ花（右下） */
.orange {
    bottom: 5%;
    right: 15%;
    width: clamp(200px, 30vw, 400px);
}

/* テキスト */
.text {
    position: absolute;
    left: 10%;
    top: 20%;
    color: var(--accent-red);
    z-index: 300;
    font-family: "Yuji Mai", serif;
    font-weight: 500;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.anniv {
    font-size: clamp(36px, 6vw, 90px);
    letter-spacing: 0.1em;
    margin: 0;
}

.front-hero h1 {
    font-size: clamp(48px, 8vw, 120px);
    margin: -30px 0;
    letter-spacing: 0.05em;
    opacity: 0.95;
    white-space: nowrap;
}

.sub {
    font-size: clamp(28px, 5vw, 80px);
    letter-spacing: -2px;
    margin: 0;
}

/* 彩 */
.sai {
    position: absolute;
    right: 5%;
    top: 15%;
    width: clamp(400px, 60vw, 1000px);
    z-index: 30;
    opacity: 0.8;
}

/* 煙共通 */
.smoke {
    position: absolute;
    opacity: 0.6;
    pointer-events: none;
    z-index: 2;
    filter: blur(2px);
    animation: floating-smoke 25s infinite alternate ease-in-out;
    will-change: transform;
    backface-visibility: hidden;
}

@keyframes floating-smoke {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translate(2%, 1%) rotate(1deg);
        opacity: 0.6;
    }

    100% {
        transform: translate(-1%, -2%) rotate(-1deg);
        opacity: 0.4;
    }
}

.smoke1 {
    top: 50%;
    right: 10%;
    width: 45vw;
    z-index: 7;
    animation-delay: 0s;
}

.smoke2 {
    top: 15%;
    left: 60%;
    width: 60vw;
    z-index: 6;
    animation-delay: -2s;
}

.smoke3 {
    top: 25%;
    left: 25%;
    width: 65vw;
    z-index: 4;
    animation-delay: -5s;
    opacity: 0.4;
}

.smoke4 {
    top: 5%;
    left: 50%;
    width: 55vw;
    z-index: 5;
    animation-delay: -8s;
}

.smoke5 {
    top: -5%;
    right: 20%;
    width: 50vw;
    z-index: 3;
    animation-delay: -12s;
}

.smoke6 {
    bottom: 15%;
    left: 15%;
    width: 55vw;
    z-index: 2;
    animation-delay: -3s;
}

.smoke7 {
    top: 10%;
    left: 10%;
    width: 50vw;
    z-index: 1;
    animation-delay: -15s;
}

.smoke9 {
    bottom: -10%;
    left: 5%;
    width: 50vw;
    z-index: 1;
    animation-delay: -7s;
    filter: rotate(290deg) blur(3px);
}

.smoke10 {
    top: 15%;
    left: 25%;
    width: 60vw;
    z-index: 1;
    animation-delay: -10s;
    filter: blur(4px);
}

/* --- カテゴリー表示エリア：デザイン工夫版 --- */
.group-category-labels {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 80px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-sizing: border-box;
    z-index: 9999;
}

/* 「CATEGORY」というラベルを装飾として追加し、公式感を演出 */
.group-category-labels::before {
    content: "CATEGORY";
    font-family: var(--font-mincho);
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-gold);
    letter-spacing: 0.15em;
    padding-right: 20px;
    border-right: 1px solid #ccc;
}

/* タグ形式ではなく、洗練されたアンダーライン形式のリンク */
.category-label {
    color: #333;
    font-family: var(--font-mincho);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.category-label::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

.category-label:hover {
    color: var(--accent-red);
}

.category-label:hover::after {
    width: 100%;
}

.site-main.hero {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* --- 2.5 ページ内表示：分割レイアウト（アイキャッチ横並び） --- */
.page-split-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    margin-bottom: 50px;
}

.page-split-image {
    width: 100%;
}

.page-eyecatch-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.page-split-content {
    width: 100%;
}

@media screen and (min-width: 769px) {
    .site-main.hero .hero-inner {
        padding: 0 !important;
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .page-split-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
        /* 本文との間隔はpaddingで調整 */
        margin: 0 !important;
    }

    .page-split-image {
        flex: 0 0 50vw;
        /* 画面幅の半分を占有 */
        position: sticky;
        top: var(--header-height);
        z-index: 10;
    }

    .page-eyecatch-img {
        margin: 0 !important;
        width: 100% !important;
        /* コンテナ(50vw)いっぱいに表示 */
        height: auto;
        border-radius: 0 20px 20px 0 !important;
        /* 左は角丸なしで端に密着 */
        box-shadow: 15px 0 40px rgba(0, 0, 0, 0.08);
        /* 右側にだけシャドウ */
        transition: none;
        /* ホバー効果を削除 */
    }

    .page-eyecatch-img:hover {
        transform: none;
        /* ホバー時の拡大を削除 */
    }

    .page-split-content {
        flex: 1;
        padding: 40px 80px 100px 80px !important;
    }
}

/* --- ページ見出しデザイン：初期状態へ復元 --- */
:root {
    --sai-gradient: linear-gradient(135deg, #1f80c9 0%, #2a9d8f 25%, #e9c46a 50%, #f4a261 75%, #e76f51 100%);
    --sai-gradient-soft: linear-gradient(to right, #7a9fc8, #ffb7b2, #ffdac1, #e2f0cb, #b5ead7, #c7ceea);
}

.gakusai-page-header-container {
    padding: 100px 20px 20px;
    /* 固定ヘッダー分の余白 */
    text-align: center;
}

.gakusai-group-list-heading {
    font-family: var(--font-mincho);
    font-size: clamp(1.4rem, 4vw, 2.2rem) !important;
    font-weight: normal !important;
    color: #333 !important;
    text-align: center !important;
    margin: 30px auto 40px !important;
    padding-bottom: 20px !important;
    position: relative;
    letter-spacing: 0.15em !important;
    max-width: 1200px;
    width: 100%;
    display: block !important;
    line-height: 1.4 !important;
    border: none !important;
    background: var(--sai-gradient) bottom no-repeat;
    background-size: 100% 3px;
}

/* コンテンツ全体の表示幅を見出しの1200px幅に合わせる共通コンテナ */
.gakusai-standard-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto !important;
    padding: 0 40px;
    /* PCでの最低限の左右余白 */
    box-sizing: border-box;
}

/* 進捗報告専用：コンテンツを左右から絞り込み、中央に凝縮させる（読みやすさ重視） */
.gakusai-narrow-content {
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 92% !important;
}

/* --- 獅子児祭 2026：カテゴリーバッジ塗り分け専用（最小限の変更） --- */

/* カテゴリーIDに応じたバッジの背景色（背景のみに作用） */
.cat-color-1 {
    background: linear-gradient(135deg, #1f80c9, #1af1b1) !important;
}

.cat-color-2 {
    background: linear-gradient(135deg, #e67e22, #f1c40f) !important;
}

.cat-color-3 {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
}

.cat-color-4 {
    background: linear-gradient(135deg, #e74c3c, #ff9ff3) !important;
}

.cat-color-5 {
    background: linear-gradient(135deg, #9b59b6, #3498db) !important;
}

.cat-color-6 {
    background: linear-gradient(135deg, #d35400, #e67e22) !important;
}

.cat-color-7 {
    background: linear-gradient(135deg, #2980b9, #3498db) !important;
}

.cat-color-8 {
    background: linear-gradient(135deg, #c0392b, #e74c3c) !important;
}

.cat-color-9 {
    background: linear-gradient(135deg, #8e44ad, #9b59b6) !important;
}

.cat-color-10 {
    background: linear-gradient(135deg, #16a085, #1abc9c) !important;
}

.cat-color-default {
    background: var(--sai-gradient-soft) !important;
}

/* 進捗バッジとヘッダーラベルの文字色を白に固定 */
.gakusai-progress-badge[class*="cat-color-"],
.gakusai-category-mini-label[class*="cat-color-"] {
    color: #ffffff !important;
}

/* --- 進捗報告 カテゴリーボタングリッド --- */
.gakusai-category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-width: 800px;
    margin: 30px auto 10px;
    padding: 0 10px;
}

.gakusai-category-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    color: #ffffff !important;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    box-sizing: border-box;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gakusai-category-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* 一覧に戻るボタン */
.gakusai-back-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #444;
    color: #fff !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.gakusai-back-btn:hover {
    transform: translateY(-2px);
    background: #222;
}

.gakusai-progress-badge[class*="cat-color-"],
.gakusai-category-mini-label[class*="cat-color-"] {
    color: #ffffff !important;
    border: none !important;
}

.gakusai-group-list-heading::before,
.gakusai-group-list-heading::after {
    content: " ― ";
    background: var(--sai-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.gakusai-category-mini-label {
    display: inline-block;
    padding: 4px 15px;
    background: var(--sai-gradient-soft);
    color: #444 !important;
    border-radius: 50px;
    font-size: clamp(10px, 1.5vw, 12px) !important;
    font-weight: 800 !important;
    letter-spacing: 0.2em !important;
    margin-bottom: 12px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* モバイル調整 */
@media screen and (max-width: 768px) {
    .gakusai-premium-header {
        padding: 120px 20px 70px;
    }

    .header-main-title {
        font-size: 26px;
    }
}

/* 団体名（タイトル枠）の装飾解除 */
.group-title-frame {
    margin-bottom: 40px;
    padding-left: 0;
    border-left: none;
    position: relative;
    text-align: center;
}

/* 標準ページのタイトルスタイル（アイキャッチなし用） */
.page-title-standard {
    font-family: var(--font-mincho);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

/* --- 3. フッターデザイン（最下部固定・強化版） --- */
.sponsor-ad-section {
    background-color: #fcfcfc;
    padding: 30px 0;
    width: 100%;
    border-top: 1px solid #eee;
    text-align: center;
}

.sponsor-ad-label {
    font-family: var(--font-mincho);
    font-size: 24px;
    font-weight: 700;
    color: #999;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.sponsor-ad-label::before,
.sponsor-ad-label::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background: #ccc;
}

.sponsor-ad-label::before {
    right: 100%;
    margin-right: 10px;
}

.sponsor-ad-label::after {
    left: 100%;
    margin-left: 10px;
}

.sponsor-ad-image {
    display: flex;
    justify-content: center;
    width: 100%;
}

.sponsor-ad-image img {
    height: 80px;
    width: auto;
    max-width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 768px) {
    .sponsor-ad-section {
        padding: 20px 0;
    }

    .sponsor-ad-image {
        padding: 0;
    }

    .sponsor-ad-image img {
        height: 60px;
    }
}

/* --- Premium Post Navigation (PREV/NEXT) --- */
.post-navigation {
    margin: 80px auto 40px;
    padding-top: 50px;
    border-top: 1px solid #eee;
    max-width: 900px;
    width: 100%;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: flex;
    flex-direction: column;
    padding: 20px;
    text-decoration: none;
    color: #444;
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.nav-previous a {
    text-align: left;
    align-items: flex-start;
}

.nav-next a {
    text-align: right;
    align-items: flex-end;
}

/* ホバー時に「彩」の枠が浮き出る演出 */
.nav-previous a:hover,
.nav-next a:hover {
    border-color: transparent;
    background-image: linear-gradient(#fff, #fff), var(--sai-gradient, linear-gradient(135deg, #1f80c9, #1af1b1));
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    color: #1f80c9;
}

.nav-arrow {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-previous a:hover .nav-arrow {
    transform: translateX(-8px);
}

.nav-next a:hover .nav-arrow {
    transform: translateX(8px);
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #999;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.nav-post-title {
    font-family: var(--font-mincho);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media screen and (max-width: 600px) {
    .nav-links {
        flex-direction: column;
    }

    .nav-post-title {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

/* 校内マップ */
.campus-map-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.map-wrapper {
    position: relative;
    border: 3px solid transparent;
    /* グラデーション用の透過ボーダー */
    border-radius: 11px;
    /* 背景色を padding-box と border-box で使い分け、枠線のみグラデーションにする */
    background-image: linear-gradient(#f9f9f9, #f9f9f9), var(--sai-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    line-height: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.map-pin {
    position: absolute;
    display: block;
    width: 50px;
    height: 50px;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.map-pin:hover {
    transform: translate(-50%, 50%) scale(1.3) !important;
    z-index: 200 !important;
}

.map-pin img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 4px solid #fff;
    box-sizing: border-box;
}

.map-pin.status-empty img {
    border-color: #2ecc71 !important;
}

.map-pin.status-moderate img {
    border-color: #f1c40f !important;
}

.map-pin.status-crowded img {
    border-color: #e74c3c !important;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(231, 76, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* --- 4. レスポンシブ (Layout) --- */
@media screen and (max-width: 1024px) {

    /* iPad / タブレット向けの微調整 */
    .front-hero {
        height: 700px;
    }

    .text {
        left: 8%;
        top: 18%;
    }

    .front-hero h1 {
        font-size: clamp(40px, 7vw, 100px);
    }

    .sai {
        right: 0%;
        top: 10%;
        width: 70vw;
        opacity: 1.0;
    }

    .blue {
        left: 5%;
        top: -5%;
        width: 45vw;
    }

    .green {
        left: 10%;
        bottom: -5%;
        width: 50vw;
    }

    .orange {
        right: 5%;
        bottom: 8%;
        width: 35vw;
    }
}

@media screen and (max-width: 768px) {
    .group-category-labels {
        padding: 10px 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* 一般ページの hero/hero-inner 調整：マップ等を大きく見せる */
    .hero {
        padding: 20px 0;
    }

    .hero-inner {
        padding: 0 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .gakusai-standard-container {
        padding: 0 15px !important;
        width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .gakusai-narrow-content {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    .gakusai-category-btn {
        padding: 18px 5px;
        font-size: 1rem;
    }

    .gakusai-back-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .campus-map-container {
        padding: 0;
        margin: 20px auto;
    }

    /* トップページ用：front-hero */
    .front-hero {
        height: min(500px, 90dvh);
    }

    .text {
        top: 15%;
        left: 5%;
        z-index: 301;
    }

    .front-hero h1 {
        margin: -5px 0;
        font-size: clamp(32px, 10vw, 56px);
    }

    /* 全パーツを相対指定 (%) に統一して崩れを防止 */
    .blue {
        left: 0%;
        top: -8%;
        width: 65vw;
    }

    .green {
        left: -5%;
        bottom: -5%;
        width: 75vw;
    }

    .orange {
        right: -5%;
        bottom: 5%;
        width: 55vw;
    }

    .sai {
        right: -15%;
        top: 38% !important;
        /* 文字と被らないようにさらに調整 */
        width: 100vw;
        opacity: 1.0;
    }
}

/* スマホ横画面（高さが極端に低い場合）のはみ出し防止 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .front-hero {
        height: 100dvh !important;
    }

    .gakusai-standard-container {
        padding: 0 15px !important;
        width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .gakusai-narrow-content {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    .sai {
        top: auto !important;
        bottom: 0 !important;
        width: 60vw !important;
        right: 0 !important;
    }

    .green {
        bottom: -20% !important;
        width: 50vw !important;
    }

    .orange {
        right: -5% !important;
        bottom: 5% !important;
        width: 35vw !important;
    }

    .front-hero h1 {
        font-size: clamp(24px, 12vh, 48px) !important;
        margin: -5px 0 !important;
    }

    .text {
        top: 8% !important;
    }
}

/* --- ヒーロー専用 花びらアニメーション (Hero Petal Falling) --- */
.hero-petals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-petals.is-active {
    opacity: 1;
}

.hero-petals .petal {
    position: absolute;
    top: -10%;
    width: 25px;
    height: 25px;
    background: #fff;
    border-radius: 150% 0 150% 0;
    opacity: 0;
    will-change: transform, opacity;
}

.hero-petals.is-active .petal {
    animation: hero-petal-fall 8s linear infinite;
}

/* 個別の花びらの設定 (ランダム感・広がり・多彩色化 / パステルカラー) */
.hero-petals .petal:nth-child(1) {
    left: 5%;
    width: 20px;
    height: 20px;
    background: rgba(255, 182, 193, 0.7);
    /* Pastel Pink */
    animation-delay: 1s;
}

.hero-petals .petal:nth-child(2) {
    left: 15%;
    width: 32px;
    height: 32px;
    background: rgba(174, 198, 207, 0.7);
    /* Pastel Blue */
    animation-delay: 3s;
}

.hero-petals .petal:nth-child(3) {
    left: 25%;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.6);
    /* White */
    animation-delay: 5s;
}

.hero-petals .petal:nth-child(4) {
    left: 35%;
    width: 45px;
    height: 45px;
    background: rgba(253, 253, 150, 0.7);
    /* Pastel Yellow */
    animation-delay: 0.5s;
}

.hero-petals .petal:nth-child(5) {
    left: 45%;
    width: 28px;
    height: 28px;
    background: rgba(119, 221, 119, 0.7);
    /* Pastel Green */
    animation-delay: 4s;
}

.hero-petals .petal:nth-child(6) {
    left: 55%;
    width: 38px;
    height: 38px;
    background: rgba(255, 182, 193, 0.6);
    /* Pastel Pink */
    animation-delay: 2s;
}

.hero-petals .petal:nth-child(7) {
    left: 65%;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.7);
    /* White */
    animation-delay: 6s;
}

.hero-petals .petal:nth-child(8) {
    left: 75%;
    width: 20px;
    height: 20px;
    background: rgba(253, 253, 150, 0.6);
    /* Pastel Yellow */
    animation-delay: 1.5s;
}

.hero-petals .petal:nth-child(9) {
    left: 85%;
    width: 34px;
    height: 34px;
    background: rgba(174, 198, 207, 0.6);
    /* Pastel Blue */
    animation-delay: 4.5s;
}

.hero-petals .petal:nth-child(10) {
    left: 95%;
    width: 28px;
    height: 28px;
    background: rgba(179, 158, 181, 0.7);
    /* Pastel Purple */
    animation-delay: 0.2s;
}

@keyframes hero-petal-fall {
    0% {
        top: -10%;
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        top: 110%;
        transform: translateX(150px) translateY(20px) rotate(1080deg);
        opacity: 0;
    }
}