@charset "UTF-8";

/* ==========================================================================
   Style - 個別微調整
   ========================================================================== */

/* -----------------------------------------------------
 * ヘッダー画像 クロスフェードアニメーション
 * ----------------------------------------------------- */
.c-header-fade {
    position: relative;
    width: 100%;
    z-index: 1; /* パーティクルの背面に配置 */
    /* 縦横比は画像に依存するため、高さを指定せず画像のレスポンシブに任せる */
    background-color: #fff; /* フラッシュの下地 */
    overflow: hidden;
}

/* フラッシュ演出用オーバーレイ */
.c-header-fade::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 10;
    pointer-events: none;
    animation: headerFlash 0.8s ease-out forwards;
}

.c-header-fade img {
    display: block;
    width: 100%;
    height: auto;
}

.c-header-fade__main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* フラッシュ(0.8s)が終わる頃にフェードインを開始するように delay を 0.6s に調整 */
    animation: fadeInHeader 1.2s ease-in-out 0.6s forwards; 
}

@keyframes headerFlash {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeInHeader {
    0% {
        opacity: 0;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ヘッダー動画用スタイル */
.c-header-video {
    position: relative;
    width: 100%;
    z-index: 1; /* パーティクルの背面に配置 */
    background-color: #fff;
    overflow: hidden;
    /* 下側をふわっとボケさせるためのマスク */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

/* 常に背面に配置される代替画像 (終了後・再生不可用) */
.c-header-video__fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 0;
}

.c-header-video video {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    background-color: transparent; /* 動画自体の背景を透過させブラウザの黒塗りを防ぐ */
    opacity: 0;
    transition: opacity 1s ease;
    animation: headerVideoFade 2s ease-in-out forwards;
}

.c-header-video video.is-hidden {
    opacity: 0;
    transition: opacity 1.5s ease;
    pointer-events: none;
}

@keyframes headerVideoFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* 1. ページ固有の背景・装飾（移行漏れや微調整） */
.movie {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

video {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* 2. Google Fonts の適用 */
body {
    font-family: var(--cre-font-family-base);
}

.tegomin {
    font-family: 'Noto Serif JP', serif;
}

/* 3. その他（既存の調整のうち残すべきもの） */
img {
    max-width: 100%;
    height: auto;
}

/* 4. Particle.js 専用キャンバススタイル */
#particles-js {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.particles-js-canvas-el {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* ヘッダー画像(1)の上、テキスト領域等(3)の下に配置 */
}

.pc { display: block; }
.sp { display: none; }

@media (max-width: 768px) {
    .pc { display: none; }
    .sp { display: block; }
}

/* 5. プランカード用スタイル (ベース) */
.c-plan-card {
    background: var(--cre-color-base);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.c-plan-card *,
a.c-plan-card:hover,
a.c-plan-card:hover * {
    text-decoration: none !important;
}
.c-plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.c-plan-card__img {
    display: block;
}

.c-plan-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* プランカードをスマホ(768px以下)で横並びに */
@media (max-width: 768px) {
    .c-plan-card {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
    
    .c-plan-card__img {
        width: 35%;
        flex-shrink: 0;
    }
    
    .c-plan-card__img img {
        height: 100%;
        object-fit: cover;
    }

    .c-plan-card__body {
        width: 65%;
        padding: 1rem 0.5rem 1rem 0;
    }
    
    .c-plan-card__body .big {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .c-plan-card__body .c-plan-summary-list {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .c-plan-card__body .c-plan-price {
        font-size: 1.2rem;
    }
}
/* 6. 画像フェード切り替え（2枚重ねて2枚目をフェードイン） */
.c-image-fade-switch {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
}

.c-image-fade-switch img:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 2s ease 1.5s;
}


.c-image-fade-switch.is-show img:nth-child(2) {
    opacity: 1;
}
