/*
Theme Name: AFFINGER Child
Template: affinger
Description: AFFINGER6 対応
Version: 20240601
*/

/*media Queries スマートフォンとタブレットサイズ（959px以下）で適応したいCSS - スマホ・タブレット
---------------------------------------------------------------------------------------------------*/
@media only screen and (max-width: 959px) {


	/*-- ここまで --*/
}
	
/*media Queries タブレットサイズ（600px～959px）のみで適応したいCSS -タブレットのみ
---------------------------------------------------------------------------------------------------*/
@media only screen and (min-width: 600px) and (max-width: 959px) {


	/*-- ここまで --*/
}	
	
/*media Queries タブレット（600px）以上で適応したいCSS -タブレット・PC
---------------------------------------------------------------------------------------------------*/
@media only screen and (min-width: 600px) {


	/*-- ここまで --*/
}

/*media Queries PCサイズ（960px）以上で適応したいCSS - PCのみ
---------------------------------------------------------------------------------------------------*/
@media print, screen and (min-width: 960px) {


	/*-- ここまで --*/
}

/*media Queries スマホサイズ（599px）以下で適応したいCSS - スマホのみ
---------------------------------------------------------------------------------------------------*/
@media print, screen and (max-width: 599px) {

	
	/*-- ここまで --*/
}

/* ============================================================
   スクロール矢印（スマホ限定・スクロールで消える）
   ============================================================ */

/* 1. 基本設定 */
.page-id-8 .rara-scroll-wrapper {
    display: none;      /* 基本は隠す */
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    text-align: center;
    transition: opacity 0.3s ease, visibility 0.3s;
}

/* 2. スマホ時のみ表示 */
@media screen and (max-width: 959px) {
    .page-id-8 .rara-scroll-wrapper {
        display: block;
    }

    /* スクロールされたら消す命令 */
    .page-id-8.st-is-scrolled .rara-scroll-wrapper {
        opacity: 0;
        visibility: hidden;
    }
}

/* 矢印アニメーションパーツ */
.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 70px;
}
.scroll-down span {
    font-size: 9px;
    letter-spacing: 0.3em;
    color: #333;
    margin-bottom: 8px;
    font-weight: 300;
}
.scroll-down::before {
    content: "";
    position: absolute;
    top: 25px;
    width: 1px;
    height: 40px;
    background: #333;
    animation: rara-scroll 2.5s cubic-bezier(1, 0, 0, 1) infinite;
}
@keyframes rara-scroll {
    0% { transform: scale(1, 0); transform-origin: 0 0; }
    35% { transform: scale(1, 1); transform-origin: 0 0; }
    35.1% { transform: scale(1, 1); transform-origin: 0 100%; }
    70% { transform: scale(1, 0); transform-origin: 0 100%; }
    100% { transform: scale(1, 0); transform-origin: 0 100%; }
}

/* ============================================================
   RARA公式サイト（ID: 8）限定：固定メニュー設定
   ============================================================ */

/* 1. PC・共通設定 */
.page-id-8 .rara-menu-fixed {
    position: fixed !important;
    top: 40px !important;
    right: 40px !important;
    z-index: 10000 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important; /* 右揃え */
    gap: 12px !important;
}

/* スマホ（画面幅959px以下）の時の調整 */
@media screen and (max-width: 959px) {
    .rara-menu-fixed {
        top: 25px;
        /* さらに右側を空けます（50pxから様子を見てください） */
        right: 55px !important; 
        align-items: flex-end;
    }
    
    .rara-menu-fixed a {
        color: #000000 !important; 
        font-size: 10px;
        letter-spacing: 0.12em; /* 少し広げて読みやすく */
        text-decoration: none;
        display: block;
        text-align: right;
        white-space: nowrap;
        /* 文字の周りにも予備の余白を強制的に持たせます */
        padding-right: 5px; 
    }
}

/* リンク共通の見た目 */
.page-id-8 .rara-menu-fixed a {
    text-decoration: none !important;
    font-weight: 300 !important;
    transition: opacity 0.3s;
}

.page-id-8 .rara-menu-fixed a:hover {
    opacity: 0.5;
}

/* すでに入っているコードの最後に... */

html {
    scroll-behavior: smooth;
}

/* ============================================================
   RARAサロン：背景固定・ロゴは流れて消える設定
   ============================================================ */

/* 1. 全体の枠組みを透明にし、スクロールを有効にする */
.page-id-8 #content, 
.page-id-8 #inner-content,
.page-id-8 main,
.page-id-8 article {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
}

/* 2. 動画を「最背面」に完全固定 */
.page-id-8 .wp-block-cover {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -1 !important; /* 一番奥 */
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. ロゴや文章（コンテンツ）を動画の上に載せる */
.page-id-8 .entry-content {
    position: relative !important;
    z-index: 10 !important; /* 動画より手前 */
    margin-top: 0 !important;
    /* ロゴを画面のどの高さから見せたいかで調整（例: 30vhは上から30%の位置） */
    padding-top: 30vh !important; 
    background-color: transparent !important;
}

/* 4. スクロールした後の「白い背景」が必要な場合 */
/* もしロゴより下の文章パートで背景を白くしたい場合は、
   WordPress編集画面でそのブロックの背景色を「白」に設定してください */

/* 5. コンテンツの横幅制限（右側の余白を消す） */
.page-id-8 .entry-content > * {
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
}