@charset "utf-8";

/* ============================================================
   1. 共通：管理バー補正
   ============================================================ */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}

.site-header,
.nav-list,
.header-aside,
#site-navigation {
    font-family: 'Zen Maru Gothic', sans-serif;
}


/* ============================================================
   2. PC表示 (769px以上) - 拡大モーション・丸ゴシック適用版
   ============================================================ */
@media screen and (min-width: 769px) {
    /* 重複防止：メニュー内のログインボタンをPCでは完全に消す */
    .mobile-only-nav-item { display: none !important; }

    /* PC用：ヘッダー右側のボタンを表示する */
    .pc-only-header-btn { display: flex !important; }

    #page { padding-top: 0; }
    .site-header {
        position: fixed; top: 0; left: 0; width: 100%; z-index: 9999;
        background-color: #fff;
        backdrop-filter: blur(8px);
        transform: translateY(0);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        /* 💡 ヘッダー全体を丸ゴシックに */
        font-family: 'Zen Maru Gothic', sans-serif;
    }

    .site-header.is-scrolling { transform: translateY(-110%); }
    .site-header.scrolled { transform: translateY(0); box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08); }

    .header-flex-row { 
        display: flex; justify-content: space-between; align-items: center; 
        padding: 15px 50px; max-width: 1600px; margin: 0 auto; min-height: 110px; 
    }
    .header-logo-img { height: 85px; width: auto; object-fit: contain; }

    /* --- ナビゲーションメニュー --- */
    .nav-list { display: flex; gap: 35px; list-style: none; margin: 0; padding: 0; }
    
    .nav-list a { 
        display: flex; flex-direction: column; align-items: center; 
        text-decoration: none; color: #333;
        /* 💡 拡大モーションを滑らかにする設定 */
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    }

    /* 💡 アイコンに合わせた時の拡大モーション */
    .nav-list a:hover {
        transform: scale(1.1);
        opacity: 0.8;
    }

    .nav-icon img { height: 42px; margin-bottom: 5px; }
    
    /* 💡 日本語テキストを 900(Black) で強調 */
    .nav-text-ja { 
        font-size: 16px; 
        font-weight: 900; 
        letter-spacing: 0.05em; 
    }

    /* --- ヘッダー右側（ボタン拡大） --- */
    .header-aside { display: flex; align-items: center; gap: 20px; }

    .btn-mail-icon { 
        background-color: #08A66C; width: 54px; height: 54px; border-radius: 12px; 
        display: flex; justify-content: center; align-items: center; color: #fff; font-size: 28px;
        /* 💡 拡大用 */
        transition: transform 0.3s ease;
    }
    .btn-mail-icon:hover { transform: scale(1.1); }

    .btn-parent { 
        background-color: #e8a36d; color: #fff; padding: 12px 25px; border-radius: 30px; 
        text-decoration: none; font-weight: 900; font-size: 14px; 
        /* 💡 拡大用 */
        transition: transform 0.3s ease;
        letter-spacing: 0.05em;
    }
    .btn-parent:hover { transform: scale(1.05); }

    .mobile-menu-btn { display: none; }
}


/* ============================================================
   3. スマホ表示 (768px以下) - インタラクティブ表示版
   ============================================================ */
@media screen and (max-width: 768px) {
    /* 重複防止：ヘッダー右側のログインボタンをスマホでは消す */
    .pc-only-header-btn { display: none !important; }

    /* スマホ用：メニュー内のログインボタンを表示する */
    .mobile-only-nav-item { display: block !important; width: 100%; margin-top: 10px; }
    .btn-parent-nav { 
        background-color: #e8a36d; color: #fff !important; display: flex; justify-content: center; 
        padding: 15px; border-radius: 12px; font-weight: 900; text-decoration: none; 
    }

    /* 💡 ヘッダーの初期設定：画面の上に隠しておく */
    .site-header { 
        position: fixed; /* 追従させるためfixed */
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 85px; 
        z-index: 9999;
        background-color: rgba(253, 249, 226, 0.95);
        
        /* 💡 初期状態は上に隠す */
        transform: translateY(-100%); 
        /* 💡 スッと出る・消えるアニメーション */
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    }

    /* 💡 JSで付与する「表示用」クラス */
    .site-header.is-show {
        transform: translateY(0) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }

    /* 💡 JSで付与する「非表示用」クラス（スクロール中など） */
    .site-header.is-hide {
        transform: translateY(-100%) !important;
    }

    /* メニューが開いている時、および管理バー表示時は強制的に表示 */
    body.menu-open .site-header,
    body.admin-bar .site-header { 
        transform: translateY(0) !important; 
    }
    
    .header-flex-row { display: flex; justify-content: space-between; align-items: center; height: 85px; padding: 0 20px; }
    .header-logo-img { height: 50px; }
    .header-aside { display: flex; align-items: center; gap: 12px; z-index: 10001; }
    .btn-mail-icon { background-color: #7292c3; width: 48px; height: 48px; border-radius: 10px; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 26px; }
    
    .mobile-menu-btn { background-color: #e94d7a; width: 48px; height: 48px; border-radius: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border: none; }

    #site-navigation { 
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background-color: #fdf9e2; z-index: 10000; transition: 0.4s; padding-top: 90px;
    }
    #site-navigation.active { right: 0; }
    .nav-list { list-style: none; display: flex; flex-direction: column; gap: 12px; width: 85%; margin: 0 auto; }
    .nav-list li.menu-item-link a { display: flex; align-items: center; background: #fff; padding: 12px 15px; border-radius: 12px; text-decoration: none; }
    .nav-icon img { height: 40px; margin-right: 12px; }
    .nav-text-ja { font-size: 18px; font-weight: 900; color: #333; }
}



/* ------------------------------------------------------------
   スマホ用：三本線ボタン（ハンバーガーメニュー）のデザイン
   ------------------------------------------------------------ */
@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: #e94d7a; /* ボタンの背景色 */
        border: none;
        cursor: pointer;
        width: 48px;
        height: 48px;
        border-radius: 10px;
        z-index: 10002;
    }

    /* 三本線の共通設定 */
    .mobile-menu-btn span {
        display: block;
        width: 24px;
        height: 3px; /* 💡 線の太さ */
        background-color: #fff; /* 💡 線の色 */
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
        position: absolute;
    }

    /* 1本目（上） */
    .mobile-menu-btn span:nth-child(1) { top: 15px; }
    /* 2本目（中） */
    .mobile-menu-btn span:nth-child(2) { top: 23px; }
    /* 3本目（下） */
    .mobile-menu-btn span:nth-child(3) { top: 31px; }

    /* ------------------------------------------------------------
       💡 開いた時（.activeクラス）のバツ印への変形
       ------------------------------------------------------------ */
    .mobile-menu-btn.active span:nth-child(1) {
        top: 23px;
        transform: rotate(45deg); /* 45度回転 */
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0; /* 真ん中の線は消す */
    }
    .mobile-menu-btn.active span:nth-child(3) {
        top: 23px;
        transform: rotate(-45deg); /* 逆向きに45度回転 */
    }
}


/* ============================================================
   フロントページ専用：トコトコ・ローディング画面
   ============================================================ */
/* 💡 フロントページ以外ではHTMLが出力されないため、ここに書いても実害はありません */

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fcfaf5; /* 園のイメージに合わせた優しいクリーム色 */
    z-index: 10005; /* ヘッダー(9999)やスマホメニュー(10000)より上に表示 */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* JSで .loaded が付与されたらふわっと消す */
#loading.loaded {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    position: relative;
}

/* 💡 キャラクターのアニメーション（上下に揺れてトコトコ感を出す） */
.walking-chara {
    width: 140px; 
    margin: 0 auto;
    animation: tokotoko 0.6s infinite alternate ease-in-out;
}

.walking-chara img {
    width: 100%;
    height: auto;
}

@keyframes tokotoko {
    0% { transform: translateY(0) rotate(-3deg); }
    100% { transform: translateY(-12px) rotate(3deg); }
}

/* 💡 地面のライン（後ろに流れることで進んでいるように見せる） */
.ground-line {
    width: 180px;
    height: 4px;
    background: #e8a36d; 
    margin: 15px auto;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.ground-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: scroll-ground 1.2s infinite linear;
}

@keyframes scroll-ground {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 💡 読み込み中テキスト */
.loading-text {
    margin-top: 20px;
    font-size: 15px;
    font-weight: 900;
    color: #08A66C;
    letter-spacing: 0.15em;
}

/* --- スマホ表示の調整 --- */
@media screen and (max-width: 768px) {
    .walking-chara {
        width: 100px;
    }
    .ground-line {
        width: 140px;
    }
    .loading-text {
        font-size: 13px;
    }
}