@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #FFF9E6;
    padding-bottom: 68px !important;
}

/* レトロポップ用デザインパーツ */
.retro-border { border: 4px solid #1A1A1A; }
.retro-shadow { box-shadow: 8px 8px 0px #1A1A1A; }
.retro-shadow-sm { box-shadow: 4px 4px 0px #1A1A1A; }
.retro-shadow-hover:hover {
    box-shadow: 4px 4px 0px #1A1A1A;
    transform: translate(4px, 4px);
}

/* 背景パターン */
.bg-dots {
    background-image: radial-gradient(#1A1A1A 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    opacity: 0.1;
}
.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, #1A1A1A 1px, transparent 1px),
                      linear-gradient(to bottom, #1A1A1A 1px, transparent 1px);
    opacity: 0.05;
}

/* スクロールアニメーション用 */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* カード画像・テキストコンテナ */
.member-card-img-container, .card-img-container { height: 80%; }
.member-card-text-container, .card-text-container { height: 20%; }

/* コース・プログラム選択用 */
.course-item, .program-item { transition: all 0.3s ease; }

/* 雲の吹き出し (fitness) */
.cloud-bubble {
    position: relative;
    background: #fff;
    border: 4px solid #1A1A1A;
    border-radius: 50px;
    padding: 12px 20px;
    display: inline-block;
    font-weight: 900;
    box-shadow: 4px 4px 0px #1A1A1A;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cloud-bubble.show {
    opacity: 1;
    transform: scale(1);
}
.cloud-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 30px;
    border-width: 15px 15px 0;
    border-style: solid;
    border-color: #1A1A1A transparent;
    display: block;
    width: 0;
}
.cloud-bubble::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 32px;
    border-width: 12px 12px 0;
    border-style: solid;
    border-color: #fff transparent;
    display: block;
    width: 0;
    z-index: 1;
}

/* キャラクターアニメーション (fitness) */
.char-box {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}
.char-box.show {
    opacity: 1;
    transform: translateY(0);
}

/* アコーディオン・テーブルなど共通部品 */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.faq-item.active .faq-content {
    max-height: 200px;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

table {
    border-collapse: separate;
    border-spacing: 0;
}
th {
    background-color: #1A1A1A;
    color: #fff;
    padding: 1rem;
    text-align: left;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
}
td {
    padding: 1.25rem 1rem;
    border-bottom: 2px solid #1A1A1A;
    font-weight: 700;
}
tr:last-child td { border-bottom: none; }

/* カテゴリーボタン用 (news) */
.filter-btn.active {
    background-color: #1A1A1A;
    color: #fff;
}
/* ヒーロースライダー用 */
.hero-slide {
    transition: opacity 1s ease-in-out;
}
@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-slide {
    animation: slide 20s linear infinite;
}

/* ホバー時にスライドを一時停止させる場合 */
.animate-slide:hover {
    animation-play-state: paused;
}
/* 装飾用のアニメーション */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.float-decoration {
    animation: float 3s ease-in-out infinite;
}

/* モバイル向け修正 */
@media (max-width: 768px) {
    h1, .text-7xl, .text-8xl { font-size: 32px !important; line-height: 1.2 !important; }
    h2, .text-5xl, .text-6xl { font-size: 28px !important; line-height: 1.3 !important; }
    h3, .text-4xl { font-size: 24px !important; line-height: 1.4 !important; }
    h4, h5, .text-3xl { font-size: 20px !important; line-height: 1.4 !important; }
    .text-2xl, .text-xl { font-size: 18px !important; }
    /* 修正後 */
    p, div, a, li, .text-lg, .text-xl, .text-2xl { font-size: 13px !important; }
    .text-sm, .text-xs { font-size: 13px !important; }
    .buddychanimg {
        display: none;
    }
    /* テーブルのカード型ブロック表示（スケジュール表以外） */
    table:not(#schedule-table), 
    table:not(#schedule-table) thead, 
    table:not(#schedule-table) tbody, 
    table:not(#schedule-table) th, 
    table:not(#schedule-table) td, 
    table:not(#schedule-table) tr {
        display: block;
        width: 100%;
    }
    
    table:not(#schedule-table) thead {
        display: none;
    }
    
    table:not(#schedule-table) tr {
        margin-bottom: 1.5rem;
        border: 4px solid #1A1A1A;
        box-shadow: 4px 4px 0px #1A1A1A;
        background: #fff;
        padding: 0.5rem;
    }
    
    table:not(#schedule-table) td {
        position: relative;
        padding: 0.5rem 0.5rem 0.5rem 30%;
        border-bottom: 2px dashed #ccc;
        text-align: right;
    }
    
    table:not(#schedule-table) td:last-child {
        border-bottom: none;
    }
    
    table:not(#schedule-table) td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.5rem;
        width: 35%;
        text-align: left;
        font-weight: 900;
        color: #1A1A1A;
        font-size: 14px !important;
    }

    /* 親要素の幅を100%に強制 */
    .schedule-container, 
    .overflow-x-auto > div {
        overflow: visible !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    
    /* テーブルを画面幅に収める設定 */
    #schedule-table {
        width: 100% !important;
        min-width: 0 !important;
        transform: none !important;
        margin-bottom: 0 !important;
        table-layout: fixed !important;
    }
    
    #schedule-table th, 
    #schedule-table td {
        word-break: break-word !important; /* 文字のはみ出しを防ぐ */
        padding: 4px !important; /* スマホ用に余白を少し詰める */
    }

 
    /* 時間列の幅 */
    #schedule-table th:first-child,
    #schedule-table td:first-child {
        width: 25% !important;
    }
}
/* 横スクロール領域用 */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.dropdown-enter {
    animation: slideDown 0.2s ease-out forwards;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}