@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;
}

/* style.css */
body {
  font-family: "Noto Serif KR";
  margin: 0;
  padding: 0;
}

p {
  font-size: 18px;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.6;
}

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: 70vh;
  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;
}

.title_entry {
  text-align: center;
  background-color: #ffffff;
  height: 50px;
}

.title_entry img {
  justify-content: center;
  height: 50px;
}

.main {
  background-image: url("img/bk_human01.png"), url("img/bk_book01.png");
  background-repeat: no-repeat;

  /* 右下（右から0、下から0）の位置に配置 */
  background-position:
    left 20px bottom -25px,
    right 20px bottom -70px;

  background-attachment: fixed;

  background-size:
    auto 90%,
    auto 45%;

  padding-top: 50px;
}

.box {
  display: flex; /* Flexboxを有効にする */
  flex-direction: column; /* 中身を「縦方向」に並べる指示 */
  justify-content: center; /* 縦並びの時の「上下中央」 */
  margin-left: auto; /* 左の余白を自動に */
  margin-right: auto; /* 右の余白を自動に */
  margin-bottom: 50px;
  width: 600px;
  padding: 30px 50px 30px 50px;
  background-color: #fffff8f6;
  border: double #0c0c0c 4px;
  border-radius: 1%;
  position: relative;
}

.box h3 {
  font-size: 1.3em;
  font-weight: 900;
  border-bottom: 1px solid #1c1c1c;
  position: relative;
  padding-left: 30px;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

/* style.css の該当箇所を修正 */
.box h3::after {
  content: "";
  position: absolute;
  left: 0;
  top: 40%;
  transform: translateY(-50%);
  width: 6px; /* 4px〜6pxくらいに少し細くしてもスタイリッシュです */
  height: 3rem; /* 文字の高さに合わせる */
  background-color: #8a1c1c; /* ★ここを差し色（例：深い赤）に変更 */
}

.hajimeni,
.play-about,
.obake,
.caution,
.hint-info,
.memo-info {
  padding-left: 1.8em; /* 全体を右に動かす */
  text-indent: -1.7em; /* 1行目だけを左に戻す（アイコンの分） */
}

.hajimeni::before {
  content: "📙";
}

.play-about::before {
  content: "🔍";
}

.obake::before {
  content: "👻";
}

.caution::before {
  content: "⚠️";
}

.hint-info::before {
  content: "💡";
}

.memo-info::before {
  content: "📝";
}

/* ボタンの見た目 */

.btn {
  display: inline-block;
  padding: 15px 0; /* 上下だけ余白を空ける */
  margin-bottom: 50px;
  background-color: #333631; /* 通常時の背景色（暗い緑） */
  color: #ffffff; /* 通常時の文字色 */
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.2em;
  position: relative;
  border: 1px solid #666;
  border-radius: 3%;
  width: 120px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  font-family: "Noto Serif KR", serif;
  cursor: pointer;

  /* ★ここがポイント：斜め（115度）の境界線を作り、通常時は右側に隠しておきます */
  background-image: linear-gradient(115deg, #8a1c1c 50%, #333631 50%);
  background-size: 260% 100%; /* 横幅を広めにとってスライドの余白を作ります */
  background-position: right bottom; /* 最初は右側（#333631）を表示 */

  /* 0.35秒かけて左から右へスッと動かす設定 */
  transition:
    background-position 0.35s ease-out,
    box-shadow 0.35s ease-out;
}

/* マウスを乗せたとき */
.btn:hover {
  /* 背景を左側に引っ張ることで、斜めの赤い面が左から右へ滑り込んできます */
  background-position: left bottom;
  color: #ffffff; /* 文字色は白をキープ */
  box-shadow: 0 5px 15px rgba(138, 28, 28, 0.5); /* 影を差し色の赤に */
}

/* ボタンの位置 */
.button-container {
  display: flex; /* Flexboxを有効にする */
  flex-direction: column; /* 中身を「縦方向」に並べる指示 */
  justify-content: center; /* 左右の中央に配置 */
  align-items: center; /* 上下の中央に配置（高さがある場合） */
  margin-top: 50px;
  padding: 80px 10%; /* 上下に少しスペースを作る */
  box-sizing: border-box; /* はみ出し防止の魔法 */
  background-color: #fffffffb;
}

.answer {
  display: flex;
}

.input {
  display: inline-block; /* 幅や高さを指定できるようにする */
  padding: 15px 5px; /* ボタンの中の余白（上下 左右） */
  height: 22px;
  margin-right: 10px;
  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 {
  position: relative;
  background-color: #1c1c1c; /* 濃いグレー（お好みの色に） */
  color: white; /* 文字の色を白にする */
  padding: 10px 0 5px 0; /* 上下に余白を作る */
  text-align: center; /* 文字を中央揃え */
  width: 100%; /* 横幅いっぱい */
}

footer p {
  font-size: 14px;
}

.page-number {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 14px;
}

/* 画面幅が800px以下（スマホ・タブレット）の場合 */
@media screen and (max-width: 800px) {
  .box {
    width: 80%; /* 横幅をいっぱいにする */
    padding: 30px;
  }
}

/* 画面幅が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;
}

footer a {
  color: #ffffff; /* リンクの色 */
  text-decoration: none; /* 下線を消す */
}

.play {
  font-size: 1rem;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap; /* 横幅が足りない時は「nobreak」単位で改行する */
  align-items: baseline; /* 文字の底辺を揃える */
  text-align: center;
  gap: 8px 12px; /* 上下間隔 8px / 左右間隔 12px */
  background-color: #0f0f0f;
  justify-content: center; /* 横方向の中央揃え */
}

/* 数字と単位をひとまとめにする設定 */
.nobreak {
  display: inline-block;
  white-space: nowrap; /* この中での自動改行を禁止 */
  margin: 0 5px;
}

.num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}
