/* カスタムフォント設定 */
* {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* スムーススクロール */
html {
    scroll-behavior: smooth;
}

/* HOJOJOブランドカラー（実際のYouTube・ホームページから採用） */
:root {
    --hojojo-orange: #ff6b35;      /* メインオレンジ（YouTubeサムネイルより） */
    --hojojo-red: #e53935;         /* アクセントレッド */
    --hojojo-yellow: #ffb000;      /* ブランドイエロー */
    --hojojo-dark-red: #c62828;    /* ダークレッド */
    --hojojo-light-orange: #ffab91; /* ライトオレンジ */
    --text-gray: #424242;
    --bg-gray: #fafafa;
    --white: #ffffff;
    --black: #212121;
}

/* ヘッダーのホバーエフェクト強化 */
nav a {
    position: relative;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--hojojo-orange);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* HOJOJOスタイルボタン */
.btn-primary {
    background: linear-gradient(135deg, var(--hojojo-orange), var(--hojojo-red));
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, var(--hojojo-red), var(--hojojo-dark-red));
}

/* ファーストビューのアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-up-delay-1 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.fade-in-up-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* HOJOJOスタイル パルスアニメーション */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 107, 53, 0.7);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* セクションタイトルのスタイル強化 */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--hojojo-orange), var(--hojojo-yellow));
    border-radius: 2px;
}

/* カードのホバーエフェクト */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* HOJOJOスタイル グラデーションテキスト */
.gradient-text {
    background: linear-gradient(135deg, var(--hojojo-orange), var(--hojojo-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* HOJOJOスタイル 数字カウンター */
.counter {
    font-size: 3rem;
    font-weight: 900;
    color: var(--hojojo-orange);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* HOJOJOスタイル プログレスバー */
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--hojojo-orange), var(--hojojo-yellow));
    border-radius: 2px;
    transition: width 0.8s ease;
}

/* スクロールインジケーター */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 9999;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--hojojo-orange), var(--hojojo-yellow));
    transition: width 0.1s ease;
}

/* フローチャートのコネクター */
.flow-connector {
    position: relative;
}

.flow-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 40px;
    height: 2px;
    background: var(--hojojo-orange);
    transform: translateY(-50%);
}

.flow-connector::before {
    content: '▶';
    position: absolute;
    top: 50%;
    right: -25px;
    color: var(--hojojo-orange);
    font-size: 12px;
    transform: translateY(-50%);
}

/* テーブルのストライプ効果 */
.table-striped tbody tr:nth-child(even) {
    background-color: rgba(59, 130, 246, 0.05);
}

/* パーティクル背景 */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

/* モバイル最適化 */
@media (max-width: 768px) {
    .counter {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .flow-connector::after,
    .flow-connector::before {
        display: none;
    }
}

/* 印刷スタイル */
@media print {
    .fixed,
    .sticky {
        position: relative !important;
    }
    
    .shadow-lg,
    .shadow-xl,
    .shadow-2xl {
        box-shadow: none !important;
    }
    
    .bg-gradient-to-r,
    .bg-gradient-to-br {
        background: white !important;
        color: black !important;
    }
}

/* アクセシビリティ向上 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-gray: #e5e7eb;
        --bg-gray: #111827;
    }
}

/* HOJOJOスタイル フォーカス管理 */
*:focus {
    outline: 2px solid var(--hojojo-orange);
    outline-offset: 2px;
}

/* 高コントラスト対応 */
@media (prefers-contrast: high) {
    .bg-white {
        background: #ffffff !important;
    }
    
    .text-gray-700 {
        color: #000000 !important;
    }
    
    .border-gray-300 {
        border-color: #000000 !important;
    }
}

/* スケルトンローディング */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ツールチップ */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.tooltip:hover::before {
    opacity: 1;
}

/* FAQ アニメーション */
.faq-answer {
    transition: all 0.3s ease;
}

.faq-icon {
    transition: transform 0.3s ease;
}

/* カスタムスクロールバー */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--hojojo-orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hojojo-red);
}

/* バックトゥトップボタン */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--hojojo-orange), var(--hojojo-red));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--hojojo-red), var(--hojojo-dark-red));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

/* HOJOJOスタイル ローディングスピナー */
.spinner {
    border: 3px solid rgba(255, 107, 53, 0.2);
    border-top: 3px solid var(--hojojo-orange);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* フォーム送信ボタンの強化 */
#submit-btn, #submit-btn-inline {
    display: inline-block !important;
    visibility: visible !important;
    min-height: 60px;
    min-width: 300px;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

#submit-btn:disabled, #submit-btn-inline:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* 成功メッセージ */
.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* エラーメッセージ */
.error-message {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}