@charset "utf-8";

@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;700&display=swap");

body {
  font-family: "Noto Serif KR", serif;
  margin: 0;
  padding: 0;
}

p {
  font-size: 18px;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.7;
}

li {
  line-height: 1.7;
  margin-bottom: 5px;
}

img {
  max-width: 100%;
  height: auto;
}

.logo-img {
  width: 200px;
  height: auto;
  margin: 10px;
  padding: 5px;
  background-color: rgb(255, 255, 255);
}

.hero {
  width: 100%;
  height: 100vh;
  background-image: url("img/bk.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex; /* 親要素をFlexboxにする */
  justify-content: center; /* 中身(h1)を左右中央にする */
  align-items: center; /* 中身(h1)を上下中央にする */
}

.hero h1 {
  color: white;
  font-size: 3rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.box {
  display: flex; /* Flexboxを有効にする */
  flex-direction: column; /* 中身を「縦方向」に並べる指示 */
  justify-content: center; /* 縦並びの時の「上下中央」 */
  margin-left: auto; /* 左の余白を自動に */
  margin-right: auto; /* 右の余白を自動に */
  width: 800px;
  padding: 20px;
}

/* ボタンの見た目 */

.btn {
  display: inline-block; /* 幅や高さを指定できるようにする */
  padding: 15px 30px; /* ボタンの中の余白（上下 左右） */
  margin-left: 20px;
  background-color: #333631; /* ボタンの色 */
  color: white; /* 文字の色 */
  text-decoration: none; /* 下線を消す */
  border-radius: 5px; /* 角を丸くする */
  font-weight: bold; /* 文字を太くする */
  transition: 0.3s; /* 変化をなめらかにする */
}

/* マウスを乗せた時の動き（ホバー） */
.btn:hover {
  background-color: #474b42; /* ボタンの色 */
  transform: translateY(-2px); /* 少し上に浮かせる */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* 影をつける */
}

/* ボタンの位置 */
.button-container {
  display: flex; /* Flexboxを有効にする */
  flex-direction: column; /* 中身を「縦方向」に並べる指示 */
  justify-content: center; /* 左右の中央に配置 */
  align-items: center; /* 上下の中央に配置（高さがある場合） */
  padding: 50px 10%; /* 上下に少しスペースを作る */
  box-sizing: border-box; /* はみ出し防止の魔法 */
}

.answer {
  display: flex;
}

.input {
  display: inline-block; /* 幅や高さを指定できるようにする */
  padding: 15px 5px; /* ボタンの中の余白（上下 左右） */
  border-radius: 5px; /* 角を丸くする */
}

#keywordInput {
  text-align: center; /* 入力文字とプレースホルダを中央に寄せる */
}

/* 背景をノイズっぽくする */

.noise {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.05) 2%, transparent 80%) 0 0 / 5px
      5px,
    radial-gradient(circle, rgba(0, 0, 0, 0.05) 2%, transparent 80%) 2px 2px /
      5px 5px;
  animation: noiseAnimation 0.2s infinite steps(2);
  opacity: 1;
  pointer-events: none;
  z-index: -1;
}

/* ノイズの動きをシミュレーション */
@keyframes noiseAnimation {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(1px, -1px);
  }
}

footer {
  background-color: #1c1c1c; /* 濃いグレー（お好みの色に） */
  color: white; /* 文字の色を白にする */
  padding: 10px 0; /* 上下に余白を作る */
  text-align: center; /* 文字を中央揃え */
  width: 100%; /* 横幅いっぱい */
}

footer p {
  font-size: 14px;
}

/* 画面幅が800px以下（スマホ・タブレット）の場合 */
@media screen and (max-width: 800px) {
  .box {
    width: 80%; /* 横幅をいっぱいにする */
    padding: 20px;
  }
}

/* 画面幅が800px以下のとき（スマホ・タブレット向け） */
@media screen and (max-width: 800px) {
  body {
    font-weight: 500; /* 標準(400)より一段階太くする */
  }
}

.footer-info {
  color: #ffffff;
  font-size: 12px;
  text-align: center;
  background-color: #0c0c0c;
  margin: 0px;
  padding: 1px 0 5px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-info a {
  font-size: 12px;
  color: #ffffff;
  padding: 5px auto;
  text-decoration: none;
}

.footer-info p {
  margin: 0;
}
