/*
Theme Name: Arkhe Child
Template: arkhe
*/

/* ローディング画面 */
#loading-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  background-image: url("http://newme-english.jp/wp-content/uploads/2025/12/sky.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  /* opacity: 0;                  */
  transition: opacity 4s ease;  /* ← フェードイン・アウト両方に効く */
  z-index: 9999;
}

/* フェードイン後の状態 */
#loading-screen.show {
  opacity: 1;
}

/* フェードアウト後の状態 */
#loading-screen.hide {
  opacity: 0;
  pointer-events: none;
}

/* ロゴ */
.loading-logo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 4rem);
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.loading-logo2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

#typing-en,
#typing-jp {
  opacity: 0;
  white-space: pre-wrap; 
}

.cursor {
  display: inline-block;
  margin-left: 3px;
  opacity: 1;
  animation: blink 0.8s step-end infinite;
  color: #fff;
  font-weight: 600;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* 文字フェードアウト用 */
.loading-text-hide {
  opacity: 0;
  transition: opacity 2s ease;
}

/* スマホ用（幅768px以下） */
@media (max-width: 768px) {
  .loading-logo {
    font-size: 1.4rem;   
    line-height: 1.4;
  }

  #loading-screen .loading-inner .loading-logo2 {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* タイピング文字の位置調整 */
  #typing-en,
  #typing-jp {
    font-size: inherit; /* 親のサイズに合わせる */
  }

  /* カーソルも少し小さく */
  .cursor {
    font-size: 1.2rem;
  }
}

/* iPhone Safari 専用の高さ補正 */
@supports (-webkit-touch-callout: none) {
  #loading-screen {
    height: -webkit-fill-available;
    min-height: -webkit-fill-available;
  }
}
