@charset "utf-8";
/* CSS Document */


/* ヘッダーロゴの共通スタイル (トップページの h1 と下層ページの .site-logo 両方に対応) */
header{
    position:relative;
}

header h1,
header .site-logo {
    width: 150px;
    margin: 0;
    padding: 0;
    line-height: 1;
    position:absolute;
    top:15px;
    left:10px;
}

header h1 a,
header .site-logo a {
    display: block;
}

/* 画像が親要素(120px)からはみ出さないようにする */
header h1 img,
header .site-logo img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}



/* =========================================
   ローディング画面：お月さまのゆりかご
========================================= */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* 背景色をやさしいアイボリーに（真っ白が良い場合は #ffffff に） */
    background-color: #fdfaf6; 
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* 読み込み完了後に .loaded が付与されたら消える */
#loading.loaded {
    opacity: 0;
    visibility: hidden;
}

.loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px; /* 月と文字の隙間 */
}

/* --- 三日月の形成と動き（揺れ幅アップ） --- */
.moon-cradle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    /* 斜め右下の影で三日月を作る */
    box-shadow: inset -14px -14px 0px 0px #e6c887; 
    transform-origin: center; 
    
    /* 揺れる幅を大きくした分、少しだけスピードアップ（3秒） */
    animation: gentle-swing 3s ease-in-out infinite;
}

/* 角度を「5度〜35度」に変更して、もう少ししっかり揺らす */
@keyframes gentle-swing {
    0% { transform: rotate(5deg); }
    50% { transform: rotate(35deg); }
    100% { transform: rotate(5deg); }
}

/* --- 波打つ文字のアニメーション --- */
.loading-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #a89487; 
    letter-spacing: 0.15em;
    margin-top: 5px; /* 月との距離を微調整 */
}

.loading-text span {
    display: inline-block;
    /* 1.5秒かけて文字が上下にポコポコ動く */
    animation: wave-text 1.5s ease-in-out infinite;
}

/* 1文字ずつ動くタイミングを 0.1秒ずつずらして「波」を作る */
.loading-text span:nth-child(1) { animation-delay: 0.0s; }
.loading-text span:nth-child(2) { animation-delay: 0.1s; }
.loading-text span:nth-child(3) { animation-delay: 0.2s; }
.loading-text span:nth-child(4) { animation-delay: 0.3s; }
.loading-text span:nth-child(5) { animation-delay: 0.4s; }
.loading-text span:nth-child(6) { animation-delay: 0.5s; }
.loading-text span:nth-child(7) { animation-delay: 0.6s; }
.loading-text span:nth-child(8) { animation-delay: 0.7s; }
.loading-text span:nth-child(9) { animation-delay: 0.8s; }
.loading-text span:nth-child(10){ animation-delay: 0.9s; }

/* 上に8px持ち上がる動き */
@keyframes wave-text {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- 文字のアニメーション --- */
.loading-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #a89487; /* やさしいブラウン・グレー系 */
    letter-spacing: 0.15em;
    
    /* ふわぁっと点滅するアニメーション */
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}