/* 共通設定 */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #222;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* 画面共通の中央寄せ */
.screen {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  width: 100%;
  max-width: 500px;
}

/* 表示切替用クラス */
.hidden {
  display: none !important;
}

/* 入力フォーム */
input[type="text"] {
  padding: 0.8rem;
  font-size: 1.1rem;
  width: 100%;
  max-width: 300px;
  margin-bottom: 1rem;
  border: none;
  border-radius: 10px;
}

/* ボタン */
@keyframes glowPulse {
  0%, 100% {
    box-shadow:
      0 4px 8px rgba(255, 0, 255, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }
  50% {
    box-shadow:
      0 8px 16px rgba(255, 0, 255, 0.7),
      inset 0 2px 1px rgba(255, 255, 255, 0.9);
  }
}

button {
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  background: rgba(255, 0, 255, 0.15);
  color: #ffffff;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 4px 8px rgba(255, 0, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  cursor: pointer;
  margin-top: 1rem;
  width: 100%;
  max-width: 300px;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(255, 0, 255, 0.7);

  animation: glowPulse 1.5s ease-in-out infinite;
}

button:hover {
  background: rgba(100, 0, 100, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 6px 12px rgba(255, 0, 255, 0.5),
    inset 0 2px 1px rgba(255, 255, 255, 0.7);
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(255, 0, 255, 0.9);

}


/* カメラ映像 */
video {
  width: 100%;
  max-width: 100%;
  border-radius: 15px;
  margin-bottom: 1rem;
}

/* 診断結果 */
#resultText {
  font-size: 1.3rem;
  text-align: center;
  line-height: 1.6;
}

#resultText a {
  color: transparent; /* 初期は透明 */
  font-size: 0.8rem;   /* 小さめに */
  text-decoration: underline;
}

/* iOSデバイス用レスポンシブ */
@media (max-width: 480px) {
  input[type="text"],
  button {
    font-size: 1rem;
    padding: 0.7rem;
  }

  #resultText {
    font-size: 1.1rem;
  }

  #resultText a {
    font-size: 0.7rem;
  }
}
