/* 
 * css/pages/notice_coincidences.css
 * シンクロニシティ「偶然の一致に気付こう！」記事専用スタイル
 */

:root {
    --sync-primary: #8b5cf6;
    --sync-light: #ddd6fe;
    --sync-cream: #f5f3ff;
    --sync-text: #1e293b;
    --sync-text-light: #64748b;
    --sync-border: rgba(139, 92, 246, 0.2);
    --sync-accent: #a855f7;
    --sync-accent-blue: #3b82f6;
}

#sync-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

.sync-hero {
    /* Premium Glassmorphism */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    border-radius: 30px;
    padding: 6rem 2rem;
    text-align: center;
    margin-bottom: 4rem;
    
    /* Elegant Borders & Deep Shadow */
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 20px 50px rgba(139, 92, 246, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 1),
        inset 0 0 30px rgba(139, 92, 246, 0.05);
        
    position: relative;
    overflow: hidden;
}

/* Elegant top highlight bar */
.sync-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    z-index: 10;
}

/* Animated Premium Glow Orb */
.sync-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 30%, transparent 60%);
    opacity: 0.8;
    animation: pulseSyncPremiumGlow 15s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

@keyframes pulseSyncPremiumGlow {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.2) rotate(10deg); }
}

.sync-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(139, 92, 246, 0.1);
    color: var(--sync-primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.1);
}

.sync-hero h1 {
    font-family: 'Kaisei Opti', serif;
    font-size: clamp(2.5rem, 6vw, 3.5rem); /* 少し大きくして迫力を出す */
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    
    /* リッチなグラデーションテキスト */
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(139, 92, 246, 0.2));
}

.sync-hero .subtitle {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.15rem;
    color: #475569;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* 記事本文内の装飾 */
.story-h2 {
    font-family: 'Kaisei Opti', serif;
    font-size: 1.8rem;
    color: #1e293b;
    border-bottom: 2px solid rgba(139, 92, 246, 0.2);
    padding-bottom: 0.5rem;
    margin: 4rem 0 2rem;
    display: inline-block;
}

/* 脳科学的な解釈ブロック */
.science-box {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.science-box h3 {
    color: #3b82f6;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.point-list dt {
    font-weight: 700;
    color: #1e293b;
    margin-top: 1rem;
    margin-bottom: 0.2rem;
}

.point-list dd {
    margin-left: 0;
    color: #475569;
    line-height: 1.8;
}

/* エピソードからの引用ブロック */
.experience-quote {
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    padding: 1.5rem 2.5rem;
    margin: 2rem 0;
    position: relative;
    font-family: 'Noto Serif JP', serif;
    color: #334155;
    font-style: italic;
}

.experience-quote::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.2rem;
    color: rgba(139, 92, 246, 0.2);
}

/* 実践リスト */
.practice-section {
    margin-top: 3rem;
}

.practice-section h3 {
    font-family: 'Kaisei Opti', serif;
    font-size: 1.3rem;
    color: #8b5cf6;
    margin: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.practice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.practice-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.8;
}

.practice-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.3rem;
    color: #34d399;
    font-size: 0.9rem;
}
.practice-list li strong {
    color: #1e293b;
}

/* 例としてのリスト */
.example-list {
    list-style: none;
    padding-left: 1rem;
    margin: 1.5rem 0;
}

.example-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.example-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #8b5cf6;
}

.closing-message {
    text-align: center;
    font-family: 'Kaisei Opti', serif;
    font-size: 1.2rem;
    color: #8b5cf6;
    margin-top: 4rem;
    padding: 2rem;
}

/* --- ブラッシュアップ追加演出のスタイル --- */

/* 1. マーカーアニメーション */
.magic-marker {
    background: linear-gradient(transparent 60%, rgba(139, 92, 246, 0.3) 40%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    display: inline;
    padding: 0 0.2rem;
    transition: background-size 1.5s cubic-bezier(0.25, 1, 0.5, 1);
    font-weight: 700;
}

.magic-marker.active {
    background-size: 100% 100%;
}

/* 2. 魔法のキーワードとキラキラエフェクト */
.magic-word {
    color: var(--sync-accent-blue);
    font-weight: bold;
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    border-bottom: 1px dashed rgba(59, 130, 246, 0.4);
}

.magic-word:hover {
    transform: translateY(-2px) scale(1.05);
    color: var(--sync-primary);
    cursor: default;
}

.sparkle-icon {
    position: absolute;
    color: #fbbf24;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    animation: sparkleAnim 1s ease-out forwards;
}

@keyframes sparkleAnim {
    0% { transform: scale(0) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; top: -20px; }
}

/* 3. 背景の隠されたサイン（アイコン） */
#hidden-symbols-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -2; /* キャンバスより後ろに */
    overflow: hidden;
}

.hidden-symbol-icon {
    position: absolute;
    color: rgba(139, 92, 246, 0.06); 
    opacity: 0;
    animation: floatingSymbol linear forwards;
}

@keyframes floatingSymbol {
    0% { opacity: 0; transform: scale(0.5) translateY(20px); }
    30% { opacity: 0.15; transform: scale(1) translateY(0); }
    70% { opacity: 0.15; transform: scale(1) translateY(-10px); }
    100% { opacity: 0; transform: scale(1.2) translateY(-30px); }
}

/* 4. シンクロ・アンテナ度占いウィジェット */
.sync-checker-widget {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.05));
    border: 2px dashed rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 4rem auto;
    position: relative;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.5);
}

.sync-checker-widget h3 {
    font-family: 'Kaisei Opti', serif;
    color: var(--sync-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.btn-sync-check {
    background: linear-gradient(135deg, var(--sync-primary) 0%, var(--sync-accent) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-sync-check:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-sync-check:disabled {
    opacity: 0.7;
    cursor: wait;
}

.sync-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    visibility: hidden;
}

.sync-result.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.sync-result .message {
    font-size: 1.2rem;
    font-weight: bold;
}

/* --- ネクスト・ブラッシュアップ追加演出 --- */

/* 1. スクロール波乗りプログレスバー */
#sync-wave-progress {
    position: fixed;
    top: var(--nav-height); 
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
    background-size: 200% 100%;
    width: 0%;
    z-index: 9999;
    animation: waveGradient 3s linear infinite;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

@keyframes waveGradient {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* 2. 気づきの隠しメッセージ（ぼかしエフェクト） */
.magic-blur {
    color: transparent;
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
    transition: all 0.8s ease;
    cursor: help;
    user-select: none;
    padding: 0.2rem;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.05);
}

.magic-blur:hover, .magic-blur.revealed {
    color: var(--sync-text);
    text-shadow: 0 0 0 rgba(139, 92, 246, 0);
    background: transparent;
}

/* --- フラップカード（体験の仕掛け） --- */
.flip-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 180px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.flip-card-front {
    background: linear-gradient(135deg, #fefaff, #f3e8ff);
    color: var(--sync-primary);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.flip-card-front i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--sync-accent);
}

.card-title {
    font-weight: bold;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.flip-card-back {
    background: var(--sync-primary);
    color: white;
    transform: rotateY(180deg);
}

.flip-card-back p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: #ffffff;
}

/* ネガティブ版のスタイル変更 */
.flip-card-grid-negative .flip-card-front {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: #475569;
    border-color: #cbd5e1;
}

.flip-card-grid-negative .flip-card-front i {
    color: #94a3b8;
}

.flip-card-grid-negative .flip-card-back {
    background: #64748b;
}

/* ==========================================
   8. PREMIUM VIDEO THEATER (SUMMARY)
   ========================================== */


.video-theater-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 20px;
    background: #1a1a2e; /* dark purple-ish black */
    padding: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2);
}

.video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect */
    border-radius: 8px;
    overflow: hidden;
}

.video-frame video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

.video-overlay, .video-replay-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    z-index: 10; cursor: pointer; transition: all 0.4s ease;
}
.video-overlay { background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(2px); }
.video-replay-overlay { background: rgba(0, 0, 0, 0.7); opacity: 0; visibility: hidden; backdrop-filter: blur(5px); }

.video-theater-container.is-playing .video-overlay { opacity: 0; visibility: hidden; }
.video-theater-container.is-finished .video-replay-overlay { opacity: 1; visibility: visible; }

.play-circle {
    width: 80px; height: 80px; background: #ff0000; /* YouTube Red */
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.4); position: relative;
}
.play-circle i { color: white; font-size: 2.5rem; margin-left: 5px; }
.play-circle::after {
    content: ""; position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px;
    border: 2px solid #ff0000; border-radius: 50%; animation: pulsePlay 2s infinite;
}
@keyframes pulsePlay { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }

.video-title-label {
    background: transparent;
    color: #fff;
    padding: 1rem 0.5rem 0.5rem 0.5rem;
    font-size: 1.25rem;
    font-weight: 500;
    font-family: 'Kaisei Opti', serif;
    text-align: left;
    letter-spacing: 0.05em;
}

.video-theater-container.is-playing .video-title-label { opacity: 1; }

.play-text { color: white; margin-top: 1.5rem; font-weight: 700; letter-spacing: 0.2em; font-family: 'Outfit', serif; text-align: center; width: 100%; }
.play-trigger { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.replay-trigger { display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; font-weight: bold; letter-spacing: 0.2em; font-family: 'Outfit', sans-serif;}
.replay-trigger i { font-size: 3rem; color: var(--sync-accent); margin-bottom: 1rem; }

@media (max-width: 768px) {
    .movie-summary-section { padding: 2rem 1.5rem; }
    .play-circle { width: 60px; height: 60px; }
    .play-circle i { font-size: 1.5rem; }
}

/* ==========================================
   9. INTERACTIVE ACCORDION
   ========================================== */
.sync-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.sync-accordion-item {
    background: white;
    border: 2px solid var(--sync-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.sync-accordion-item.active {
    border-color: var(--sync-accent-blue);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.sync-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    padding: 1.5rem 2rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s ease;
}
.sync-accordion-header:hover { background: var(--sync-cream); }
.sync-accordion-item.active .sync-accordion-header {
    background: linear-gradient(to right, rgba(59, 130, 246, 0.05), transparent);
}

.step-num {
    background: linear-gradient(135deg, var(--sync-primary), var(--sync-accent-blue));
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--sync-text);
    flex-grow: 1;
    line-height: 1.4;
}

.toggle-icon {
    font-size: 1.2rem;
    color: var(--sync-text-light);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 1rem;
}
.sync-accordion-item.active .toggle-icon { transform: rotate(180deg); color: var(--sync-accent-blue); }

.sync-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-inner-pad {
    padding: 0 2rem 2rem 2rem;
}

.practice-detail-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.detail-card {
    background: var(--sync-cream);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px dashed var(--sync-light);
}

.detail-card h4 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sync-primary);
}
.detail-card p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--sync-text-light);
    line-height: 1.6;
}

/* ==========================================
   10. SYNCHROMETER RADAR ANIMATION
   ========================================== */
.sync-radar-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.radar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--sync-primary);
    position: relative;
    overflow: hidden;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.radar::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.8), transparent);
    top: 0;
    left: 50%;
    transform-origin: bottom left;
    animation: radarScan 1.5s linear infinite;
    border-radius: 100% 0 0 0;
}

.radar::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--sync-accent-blue);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--sync-accent-blue);
    z-index: 2;
}

@keyframes radarScan {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.scanning-text {
    margin-top: 1.5rem;
    font-weight: bold;
    color: var(--sync-primary);
    letter-spacing: 0.15em;
    animation: pulseText 1.5s ease-in-out infinite alternate;
}

@keyframes pulseText {
    0% { opacity: 0.5; }
    100% { opacity: 1; text-shadow: 0 0 8px rgba(139, 92, 246, 0.5); }
}

