/* ========================================
   治療ページ共通スタイル
   NMN療法、NAD+療法、オーソモレキュラー療法で使用
   ======================================== */

/* 効果カード - CSS変数を活用 */
.effect-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: var(--transition-base, all 0.3s ease);
    border-top: 5px solid var(--color-primary-gold, #F6AD55);
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.effect-card:hover {
    transform: var(--card-hover-transform, translateY(-10px));
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.effect-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary-gold, #F6AD55) 0%, var(--color-primary-gold-light, #FBD38D) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(201,169,97,0.3);
}

.effect-icon i {
    font-size: 2.5rem;
    color: white;
}

.effect-card h3 {
    font-size: 1.6rem;
    color: #2C7A7B;
    margin-bottom: 1rem;
    font-weight: 700;
}

.effect-card p {
    color: var(--color-text-gray, #666);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.effect-card .mini-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.effect-card .mini-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
}

.effect-card .mini-list li:last-child {
    border-bottom: none;
}

.effect-card .mini-list li::before {
    content: "✓";
    color: var(--color-primary-gold, #F6AD55);
    font-weight: bold;
    font-size: 1.2rem;
}

/* グリッドレイアウト */
.effect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* フローティングCTAボタン（モバイル専用） */
.floating-cta {
    display: none; /* PC版では非表示 */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    animation: slideInUp 0.5s ease-out;
}

.floating-cta-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--color-primary-gold, #F6AD55) 0%, var(--color-primary-gold-light, #FBD38D) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(201,169,97,0.4), 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.floating-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(201,169,97,0.5), 0 6px 16px rgba(0,0,0,0.2);
    color: white;
}

.floating-cta-btn i {
    font-size: 1.2rem;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   モバイル専用ヘッダー・メニュースタイル
   ======================================== */

/* モバイルメニュートグルボタン */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    position: relative;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-dark-blue, #2C7A7B);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* モバイルメニュー本体 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    z-index: 999;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    display: block;
    transform: translateX(0);
}

.mobile-menu .nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu .nav-item {
    border-bottom: 1px solid #eee;
}

.mobile-menu .nav-link {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--color-dark-blue, #2C7A7B);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu .nav-link:hover {
    background: #f8f9fa;
    color: var(--color-primary-gold, #F6AD55);
    padding-left: 1.5rem;
}

/* モバイルメニュートグルボタンアニメーション */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   モバイル対応
   ======================================== */
@media (max-width: 768px) {
    /* ヘッダー固定表示の強化 */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
        height: 70px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* ロゴの調整 */
    .logo {
        z-index: 1001 !important;
    }
    
    .logo-image {
        width: 40px !important;
        height: auto !important;
    }
    
    /* WebP picture要素対応 */
    .logo picture {
        display: block !important;
        line-height: 0 !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    .logo picture img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        display: block !important;
    }
    
    /* デスクトップナビゲーションを非表示 */
    .nav {
        display: none !important;
    }
    
    /* モバイルメニュートグルボタンを表示 */
    .hamburger {
        display: flex !important;
    }
    
    /* モバイル固定CTAバーを強制表示 */
    .mobile-cta {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999 !important;
    }
    
    /* モバイルCTA分のスペースを確保 */
    body {
        padding-bottom: 80px !important;
    }
    
    /* エフェクトグリッド */
    .effect-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .effect-card {
        padding: 2rem;
    }
    
    .effect-icon {
        width: 60px;
        height: 60px;
    }
    
    .effect-icon i {
        font-size: 2rem;
    }
    
    .effect-card h3 {
        font-size: 1.4rem;
    }
    
    .effect-card p {
        font-size: 0.95rem;
    }
    
    /* フローティングCTA - モバイル専用表示 */
    .floating-cta {
        display: block; /* モバイルのみ表示 */
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    .floating-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .floating-cta-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* prefers-reduced-motion対応 */
@media (prefers-reduced-motion: reduce) {
    .effect-card:hover {
        transform: none;
    }
    
    .floating-cta-btn:hover {
        transform: none;
    }
    
    .floating-cta {
        animation: none;
    }
}
