/* 基本設定 */
body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Georgia', 'Times New Roman', 'Hiragino Mincho ProN', 'MS Mincho', serif;
  background-color: #FFFFFF; /* 背景色：白 */
  color: #333;
  overflow: hidden; /* アニメーション中のスクロール防止 */
}

/* フェードインアニメーション（解答ページ用） */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ロック画面のレイアウト */
#lock-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
  /* ★「ふわっと」消えるためのアニメーション（0.8秒）★ */
  transition: opacity 0.8s ease-out; 
}

.content {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* ▼ ロゴ画像のスタイル（共通） ▼ */
.logo-image {
  max-width: 80%;      /* 横幅の最大値を調整 */
  height: auto;        /* 縦横比を維持 */
  margin-bottom: 20px; /* 下の要素との余白 */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

h1 {
  font-weight: normal;
  letter-spacing: 2px;
  /* ▼▼▼ 変更箇所：文字色を #474747 に変更 ▼▼▼ */
  color: #474747;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 30px;
}

/* フォームのデザイン */
#password-form {
  display: flex;
  flex-direction: column;
}

#password-input {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #CCC;
  background-color: #FFF;
  font-size: 1em;
  box-sizing: border-box; /* パディングを含めて幅を計算 */
  text-align: center;
}

#submit-button {
  padding: 15px;
  border: none;
  background-color: #333;
  color: white;
  font-size: 1em;
  font-family: inherit;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#submit-button:hover {
  background-color: #555;
}

/* メッセージ（エラー表示用） */
#message {
  margin-top: 15px;
  color: #D9534F; /* エラー用の赤色 */
  height: 1.2em; /* 高さを確保してレイアウトが崩れないようにする */
  font-size: 0.9em;
}

/* 扉アニメーション */
#door-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #FFF; /* 扉の奥は白（ホワイトアウト用） */
  visibility: hidden; /* 初期状態は隠す */
  z-index: 100;
  opacity: 0; /* 「ふわっと」現れるため（初期状態は透明） */
  transition: opacity 0.3s ease-in; /* 「ふわっと」現れるためのアニメーション */
}

.door {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  /* 色、グラデーション、テクスチャ、シャドウの強化 */
  background-color: #3b251d; 
  background-image: 
    linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.3)),
    url('https://example.com/my-cool-wood.jpg'); /* ※必要に応じて書き換え */
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;

  /* 立体感を出すためのシャドウ強化 */
  box-shadow: 
    inset 0 0 80px rgba(0,0,0,0.9),
    0 0 30px rgba(0,0,0,0.6),
    0 0 100px rgba(0,0,0,0.4) inset;
  transition: transform 1.5s cubic-bezier(0.7, 0, 0.3, 1);
}

.left-door {
  left: 0;
  background-position: left center;
}

.right-door {
  right: 0;
  background-position: right center;
}

/* 扉が開くアニメーション */
#door-animation.open .left-door {
  transform: translateX(-100%);
}

#door-animation.open .right-door {
  transform: translateX(100%);
}