@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
/* 都市伝説探求機関UFO研究所 - 高級エフェクト */

/* 星空背景アニメーション */
body {
    background: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 140, 0, 0.6), transparent),
        #0a0e1a;
    background-size: 200px 150px;
    animation: cosmicDrift 50s linear infinite;
}

@keyframes cosmicDrift {
    0% { background-position: 0 0; }
    100% { background-position: -200px -150px; }
}

/* カードのホバー効果 */
.elementor-widget-container {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.elementor-widget-container:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 255, 255, 0.3),
        0 0 40px rgba(255, 140, 0, 0.1);
}

/* タイトルのグロー効果 */
.elementor-heading-title {
    text-shadow: 
        0 0 20px rgba(0, 255, 255, 0.7),
        0 0 40px rgba(0, 255, 255, 0.5),
        0 0 60px rgba(255, 140, 0, 0.3);
    animation: titlePulse 4s ease-in-out infinite alternate;
}

@keyframes titlePulse {
    0% { transform: scale(1); filter: brightness(1); }
    100% { transform: scale(1.02); filter: brightness(1.1); }
}

/* ボタンの高級エフェクト */
.elementor-button {
    background: linear-gradient(135deg, #00ffff, #0080ff, #ff8c00) !important;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.3);
    transition: all 0.4s ease;
}

.elementor-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 255, 255, 0.5);
}

/* UFOアニメーション追加 */
.ufo-animation {
    position: fixed;
    top: 20%;
    right: 10%;
    width: 100px;
    height: 50px;
    background: linear-gradient(45deg, #c0c0c0, #ffffff);
    border-radius: 50%;
    animation: ufoFloat 6s ease-in-out infinite;
    z-index: 1000;
}

@keyframes ufoFloat {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    33% { transform: translateY(-15px) rotate(1deg); }
    66% { transform: translateY(-25px) rotate(-1deg); }
}

/* セクション区切り線 */
.elementor-section {
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
}

.elementor-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
}

/* 高度なパーティクル背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 140, 0, 0.08) 0%, transparent 50%);
    animation: backgroundPulse 10s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes backgroundPulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.7; transform: scale(1.1); }
}

/* セクション間の美しい区切り */
.elementor-section {
    position: relative;
    overflow: hidden;
}

.elementor-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 255, 0.6) 25%, 
        rgba(255, 140, 0, 0.6) 50%, 
        rgba(0, 255, 255, 0.6) 75%, 
        transparent 100%);
    animation: sectionLine 4s ease-in-out infinite;
}

@keyframes sectionLine {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* カードの3D効果 */
.elementor-widget-container {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.elementor-widget-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.elementor-widget-container:hover::before {
    left: 100%;
}

/* タイトルの高級感アップ */
.elementor-heading-title {
    position: relative;
    background: linear-gradient(135deg, #00ffff 0%, #ff8c00 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.elementor-heading-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #ff8c00, #00ffff);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* ボタンの極上エフェクト */
.elementor-button {
    position: relative;
    background: linear-gradient(135deg, #00ffff, #0080ff, #ff8c00) !important;
    background-size: 200% 200% !important;
    animation: buttonGradient 3s ease infinite !important;
    box-shadow: 
        0 8px 32px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    overflow: hidden;
}

.elementor-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    transition: left 0.6s;
}

.elementor-button:hover::before {
    left: 100%;
}

@keyframes buttonGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* スクロール時のアニメーション */
.elementor-widget-container {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 遅延アニメーション */
.elementor-widget-container:nth-child(1) { animation-delay: 0.1s; }
.elementor-widget-container:nth-child(2) { animation-delay: 0.2s; }
.elementor-widget-container:nth-child(3) { animation-delay: 0.3s; }

/* モバイル最適化 */
@media (max-width: 768px) {
    .elementor-heading-title {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
        letter-spacing: 1px !important;
    }
    
    .elementor-section {
        padding: 50px 20px !important;
    }
    
    .elementor-widget-container {
        margin-bottom: 20px !important;
        padding: 20px !important;
    }
    
    .elementor-button {
        width: 100% !important;
        text-align: center !important;
        padding: 15px 20px !important;
    }
    
    /* カードの3列を1列に */
    .elementor-column {
        width: 100% !important;
        margin-bottom: 30px !important;
    }
    
    /* 背景エフェクトをモバイル用に軽量化 */
    body {
        background-size: 100px 75px;
        animation-duration: 30s;
    }
}

@media (max-width: 480px) {
    .elementor-heading-title {
        font-size: 2rem !important;
    }
    
    .elementor-section {
        padding: 30px 15px !important;
    }
}

/* タブレット用 */
@media (min-width: 769px) and (max-width: 1024px) {
    .elementor-heading-title {
        font-size: 3.5rem !important;
    }
    
    .elementor-column {
        width: 50% !important;
    }
}

/* 高解像度ディスプレイ対応 */
@media (min-width: 1200px) {
    .elementor-container {
        max-width: 1400px !important;
    }
    
    .elementor-heading-title {
        font-size: 5rem !important;
    }
}

/* パフォーマンス最適化 */
.elementor-widget-container {
    will-change: transform;
    backface-visibility: hidden;
}

/* プリロード効果 */
.elementor-section:first-child {
    animation: sectionFadeIn 1.5s ease-out;
}

@keyframes sectionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* UFO浮遊アニメーション */
.ufo-element {
    position: fixed;
    top: 20%;
    right: 8%;
    width: 80px;
    height: 40px;
    background: linear-gradient(135deg, #c0c0c0, #ffffff, #c0c0c0);
    border-radius: 50%;
    z-index: 999;
    animation: ufoFloat 8s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.6),
        inset 0 -3px 5px rgba(0, 0, 0, 0.2);
}

.ufo-element::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 25%;
    width: 50%;
    height: 20px;
    background: linear-gradient(135deg, #00ffff, #ffffff);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

@keyframes ufoFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(-1deg);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    25% { 
        transform: translateY(-20px) rotate(1deg);
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
    }
    50% { 
        transform: translateY(-30px) rotate(-0.5deg);
        filter: drop-shadow(0 0 15px rgba(255, 140, 0, 0.4));
    }
    75% { 
        transform: translateY(-15px) rotate(0.5deg);
        filter: drop-shadow(0 0 25px rgba(0, 255, 255, 0.6));
    }
}

/* モバイルではUFOを非表示 */
@media (max-width: 768px) {
    .ufo-element {
        display: none;
    }
}

/* サイト全体の品質向上 */
html {
    scroll-behavior: smooth;
}

/* 読み込み中の表示改善 */
.elementor-section {
    min-height: 100px;
}

/* テキストの可読性向上 */
.elementor-text-editor p,
.elementor-heading-title {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 最終調整 */
.elementor-widget-container:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(0, 255, 255, 0.3),
        0 10px 30px rgba(255, 140, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 印刷スタイル */
@media print {
    .ufo-element,
    .elementor-section::after {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
/* サイドバーを完全に強制非表示 */
aside,
.sidebar,
#sidebar,
#sidebar-scroll,
.widget-area,
.secondary,
#secondary,
[class*="sidebar"],
[id*="sidebar"] {
    display: none !important;
    width: 0 !important;
    visibility: hidden !important;
}

/* メインコンテンツを全幅に強制 */
.main,
#main,
.content-area,
#primary,
.site-main,
#content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

/* Cocoon特有のクラスを削除 */
.main-wrap,
.main-contents,
.content-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* サイト全体のレイアウト調整 */
.site,
.wrap,
.container {
    width: 50% !important;
    max-width: 50% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* 背景は全画面 */
body,
html {
    background: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 140, 0, 0.6), transparent),
        #0a0e1a !important;
    background-size: 200px 150px;
    animation: cosmicDrift 50s linear infinite;
    width: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Flexboxレイアウトを無効化 */
.main-wrap {
    display: block !important;
}

/* グリッドレイアウトを無効化 */
[class*="grid"] {
    display: block !important;
}

/* レスポンシブ調整 */
@media (max-width: 1024px) {
    .site,
    .wrap,
    .container {
        width: 70% !important;
    }
}

@media (max-width: 768px) {
    .site,
    .wrap,
    .container {
        width: 95% !important;
    }
}

@media (max-width: 480px) {
    .site,
    .wrap,
    .container {
        width: 100% !important;
    }
}