/* CSS */
@charset "utf-8";

* {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

html {
  background: linear-gradient(to bottom, #005f80, #001d2e) !important;
  font-family: "DM Mono", monospace; /* DM Mono フォントの適用 */
  /*font-size: 3vw; 画面の幅の3%に設定 */
  word-break: break-all;
  color: #f0f8ff; /* 月白 */
}

body {
  padding: 0;
  margin: 0;
  width: 100%;
  overflow: auto;
  overflow: -moz-scrollbars-vertical;
  line-height: 1.2;
  color: inherit;
}

main {
  margin: 0 auto;
  font-size: 150%;
  width: 85vw;
  padding: 5vh 0;
}

/* 個別のスタイル */

h1 {
  color: white; /* 文字色を白に設定 */
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8),
    0 0 10px rgba(255, 255, 255, 0.8); /* 発光効果 */
}

button {
  padding: 15px 30px;
  background-color: #ff7f50; /* オレンジ色のボタン */
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8),
    0 0 10px rgba(255, 255, 255, 0.8); /* 発光効果 */
}

button:hover {
  background-color: #ff6347; /* ホバー時の色 */
}

/*テキストボックス*/
#search-container {
  display: flex;
  font-family: "DM Mono", monospace;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 75vh;
  text-align: center;
  gap: 2vh;
}

#site-title {
  font-size: 4rem;
  margin-bottom: 2vh;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

#search-input {
  width: 70vw;
  font-family: "DM Mono", monospace;
  max-width: 600px;
  font-size: 1.5rem;
  padding: 10px;
  border-radius: 5px;
  border: none;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

#search-form button {
  margin-top: 1.5vh;
}

/* Grid Overlay 自動描画 */
body::before {
  content: "";
  position: fixed; /* スクロールしても固定 */
  inset: 0; /* 画面全体に広げる */
  pointer-events: none; /* クリック操作を邪魔しない */
  z-index: -1; /* 本文の背面に配置 */
  opacity: 1;

  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px; /* グリッド間隔 */
  mix-blend-mode: overlay; /* 下の背景に馴染ませる */
}
