@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){
  /*必要ならばここにコードを書く*/
}

/* Animation4: スクロールで出現 */
.Animation4 {
    font-size: 3em;
    font-weight: bold;
    color: #28a745;
    text-align: center;
    opacity: 0; /* 初期状態は透明 */
    transform: translateY(50px); /* 少し下からスタート */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* CSSトランジションを準備 */
}

/* アニメーション後の状態（JSでクラスを付与） */
.Animation4.is-visible {
    opacity: 1;
    transform: translateY(0);
}







/* Animation1: タイプライターエフェクト */
.Animation1 {
    font-family: 'monospace', 'メイリオ', Meiryo, sans-serif; /* 等幅フォント推奨 */
    font-size: 2em; /* 例 */
    color: #333;
    overflow: hidden; /* はみ出た文字を隠す */
    white-space: nowrap; /* テキストが改行されないように */
    border-right: 0.15em solid orange; /* カーソルを模倣 */
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    width: 0; /* 初期状態では幅を0に */
    display: inline-block; /* widthが効くように */
}

/* カーソルアニメーション */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: orange }
}