body {
    font-family: 'Noto Sans JP', sans-serif;
    overflow-y: visible; 
}
.font-serif {
    font-family: 'Noto Serif JP', serif;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* スナップスクロールはタブレット・PC のみ（768px以上） */
@media (min-width: 768px) {
    html {
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
    }
    section {
        scroll-snap-align: start;
    }
}

.pulse-btn {
    animation: pulse-orange 2s infinite;
}
@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(217, 119, 6, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
    }
}

.scroll-down {
    animation: bounce 2s infinite;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent; 
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.5); 
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.8); 
}

.fade-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-out; 
}
.fade-content.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* ヒーロー：見出し以外の要素の出現を1秒遅らせる */
.hero-late {
    transition-delay: 1s;
}

.marker-highlight {
    background: linear-gradient(transparent 0%, rgba(250, 204, 21, 0.6) 0%); 
    background-size: 0% 100%;
    background-repeat: no-repeat;
    display: inline;
    border-radius: 4px;
}
.fade-content.is-visible .marker-highlight {
    animation: drawMarker 1.5s ease-out 1.0s forwards;
}
@keyframes drawMarker {
    0% { background-size: 0% 100%; }
    100% { background-size: 100% 100%; }
}

.overlay-dots {
    background-image: radial-gradient(rgba(167, 139, 250, 0.3) 1px, transparent 1px);
    background-size: 4px 4px;
    z-index: 1;
}

.hero-gradient {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(235, 230, 255, 0.2) 30%,
        rgba(46, 16, 101, 0.7) 70%,
        rgba(46, 16, 101, 0.95) 100%
    );
    z-index: 1;
}

.nav-active {
    color: #d97706 !important;
    border-bottom-color: #d97706 !important;
}

.mobile-nav-active {
    color: #d97706 !important;
    background-color: #f8fafc;
    border-left: 4px solid #d97706;
}

.side-nav-dot {
    transition: all 0.3s ease;
}
.side-nav-dot.active {
    background-color: transparent !important;
    border: 2px solid #64748b;
    transform: scale(1.2);
}

/* ── スワイプヒント ピルバッジ ── */
.swipe-hint-pill-wrap {
    position: absolute;
    inset: 0;
    display: none; /* デフォルト非表示（Tailwind md:hidden と競合しないようCSSで制御） */
    align-items: center;
    justify-content: center;
    padding-right: 15%;
    pointer-events: none;
    z-index: 20;
    transition: opacity 0.4s ease;
}
/* モバイルのみ表示 */
@media (max-width: 767px) {
    .swipe-hint-pill-wrap {
        display: flex;
    }
}
.swipe-hint-pill-wrap.is-hidden {
    opacity: 0;
}
.swipe-hint-pill {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 40px;
    padding: 7px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    color: #38185a;
    font-family: 'Noto Serif JP', serif;
    font-weight: 800;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* ── 家族葬の特徴セクション ── */

/* 特徴1〜3,5 カードエリア背景 */
.family-features-cards {
    background: #f5f3ff;
}

/* 特徴カード ホバーリフト */
.feature-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card-hover:hover {
    transform: translateY(-4px);
}

/* タブボタン（PC：左サイドバー） */
.f4-tab-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    color: #e9d5ff;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: all 0.25s ease;
}
.f4-tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}
.f4-tab-btn.active {
    background: #ffffff;
    color: #2e1065;
    border-color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* 特徴4 COMING SOON バッジ */
.f4-coming-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}
.f4-tab-btn.active .f4-coming-badge {
    background: #e5e7eb;
    color: #9ca3af;
}

/* 特徴4 コンテンツパネル（PC） */
.f4-panel {
    display: none;
}
.f4-panel.active {
    display: block;
    animation: f4FadeIn 0.35s ease;
}
@keyframes f4FadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ドットインジケーター（モバイル） */
.f4-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.25s ease;
}
.f4-dot.active {
    background: #ffffff;
}
