@charset "UTF-8";

:root {
    --color-main: #bf360c;
    /* えんじ色 */
    --color-accent: #d84315;
    /* 提灯オレンジ */
    --color-bg: #fdfbf7;
    /* 和紙ホワイト */
    --color-text: #3e2723;
    /* 墨色ブラウン */
    --color-card: #ffffff;
    --shadow-retro: 4px 4px 0px rgba(191, 54, 12, 0.15);
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
    margin: 0;
    line-height: 1.8;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 143, 0, 0.05) 0%, transparent 100%);
}

.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 20px;
    min-height: 60vh;
}

/* ヘッダー演出 */
.header-hero {
    text-align: center;
    padding: 60px 20px;
    min-height: 300px;
    background-image: url('./img/ヘッダー.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* メインビジュアル画像の最適化（横並び用） */
.hero-main-img {
    width: 100%;
    max-width: 100%;
    max-height: 400px;
    /* 横のGoogleマップと高さを揃える */
    object-fit: contain;
    /* アスペクト比を維持して枠内に収める */
    border-radius: 8px;
    box-shadow: var(--shadow-retro);
    display: block;
    margin: 0 auto;
}

/* カードデザイン（枠と背景あり） */
.card-content,
.info-box {
    background-color: var(--color-card);
    border: 2px solid var(--color-main);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-retro);
    box-sizing: border-box;
    /* はみ出し防止 */
}

/* ご挨拶エリア（背景と枠線を削除） */
.greeting-box {
    padding: 30px;
    margin-bottom: 30px;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.title-section {
    color: var(--color-main);
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
}

.title-section::before,
.title-section::after {
    content: "🏮";
    margin: 0 15px;
    font-size: 1.5rem;
}

/* ナビゲーション（タブ切り替えボタン） */
#toc-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

#toc-nav a {
    display: block;
    padding: 8px 15px;
    background-color: #ffccbc;
    color: var(--color-main);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.2s;
    border-bottom: 3px solid var(--color-main);
    cursor: pointer;
}

#toc-nav a:hover,
#toc-nav a.active {
    transform: translateY(-2px);
    background-color: var(--color-main);
    color: #fff;
}

/* タブコンテンツの表示・非表示アニメーション */
.tab-content {
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 概要リスト */
.overview-list {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.overview-list dt {
    font-weight: bold;
    color: var(--color-main);
    border-right: 2px solid var(--color-main);
}

.overview-list dd {
    margin-left: 0;
    margin-bottom: 0.5em;
}

/* リンク全般 */
a.link-appeal {
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: bold;
}

a.link-appeal:hover {
    color: var(--color-main);
}

/* リスト・その他要素の調整 */
.participation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.item-box {
    padding: 15px;
    border-radius: 5px;
    box-sizing: border-box;
}

.item-box-required {
    background-color: #ffebee;
    border-left: 5px solid #c62828;
}

.item-box-recommended {
    background-color: #e8f5e9;
    border-left: 5px solid #2e7d32;
}

.item-box-yellow {
    background-color: #fffde7;
    border-left: 5px solid #fbc02d;
}

.item-box-blue {
    background-color: #e3f2fd;
    border-left: 5px solid #1565c0;
}

.item-box-purple {
    background-color: #f3e5f5;
    border-left: 5px solid #7b1fa2;
}

/* ▼▼ 企画紹介のカード（はみ出し修正部分） ▼▼ */
.plan-split-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.plan-card-wrapper {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.plan-card-square {
    flex: 1;
    /* 親の空き領域を自動でピッタリ埋める */
    box-sizing: border-box;
    /* 余白を含めてサイズ計算させる（はみ出し防止） */
    padding: 20px;
    border-radius: 8px;
}

/* SNSグリッド */
.sns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.sns-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text);
    transition: background-color 0.2s;
}

.sns-item:hover {
    background-color: #f5f5f5;
}

/* フローティングアクションボタン (FAB) */
.fab-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 85px;
    height: 85px;
    background-color: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1.2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s, opacity 0.4s;
    border: 3px solid #fff;
}

.fab-container:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--color-main);
    color: #fff;
}

/* フッター */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #3e2723;
    color: #efebe9;
}

.pc-only {
    display: block;
}

.sp-only {
    display: none;
}

.text-center {
    text-align: center;
}

.text-warn {
    color: #d32f2f;
    font-weight: bold;
}

.underline-warn {
    border-bottom: 2px solid #d32f2f;
}

.layout-split {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.layout-split>* {
    flex: 1 1 300px;
}

/* ▼▼ モバイル対応およびアニメーション無効化 ▼▼ */
@media (max-width: 600px) {
    .header-hero {
        min-height: 200px;
        padding: 0;
    }

    .card-content,
    .greeting-box {
        padding: 20px;
    }

    .fab-container {
        width: 75px;
        height: 75px;
        font-size: 0.8rem;
    }

    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }

    /* モバイル表示時は全てのアニメーション・トランジションを完全に無効化 */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* 画像用アニメーションCSS（PC向け） */
.leaf-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* クリックを邪魔しない */
    z-index: 9998;
    /* FABの下、コンテンツの上 */
    overflow: hidden;
    perspective: 1000px;
    /* 3D効果のため */
}

.leaf-wrap {
    position: absolute;
    top: -15vh;
    /* 画面外から */
    will-change: transform;
    /* GPUアクセラレーション強制 */
}

.leaf {
    display: block;
    /* 画像要素のためブロック化 */
    will-change: transform;
    user-select: none;
    transform-origin: center;
}

/* 縦に落ちる動き（自然な緩急） */
@keyframes fallDown {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(0, 125vh, 0);
    }
}

/* 不規則な動きのための複数の3D回転パターン */
@keyframes sway-r1 {
    0% {
        transform: translate3d(-40px, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(-30deg);
    }

    50% {
        transform: translate3d(40px, 0, 0) rotateX(360deg) rotateY(180deg) rotateZ(30deg);
    }

    100% {
        transform: translate3d(-40px, 0, 0) rotateX(720deg) rotateY(360deg) rotateZ(-30deg);
    }
}

@keyframes sway-r2 {
    0% {
        transform: translate3d(-60px, 0, 0) rotateY(0deg) rotateZ(-15deg);
    }

    50% {
        transform: translate3d(60px, 0, 0) rotateY(180deg) rotateZ(15deg);
    }

    100% {
        transform: translate3d(-60px, 0, 0) rotateY(360deg) rotateZ(-15deg);
    }
}

@keyframes sway-r3 {
    0% {
        transform: translate3d(-20px, 0, 0) rotateX(0deg);
    }

    100% {
        transform: translate3d(20px, 0, 0) rotateX(360deg);
    }
}