/* Noto Sans JPフォントの利用 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;200;300;400;500&display=swap');

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  margin: 0;
  padding: 20px;
  text-align: center;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ヘッダーのスタイル */
header {
  margin-bottom: 40px;
}

header .banner {
  background-color: #fff;
  color: #333;
  padding: 20px;
  margin: 10px auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-weight: 300;
}

h1{
  font-weight: 300;
  margin: 10px auto;
}

p{
  margin: 0px auto;
}

.divider {
  width: 80%;
  margin: 25px auto 10px;
  border: none;
  border-top: 1px solid #ddd;
}

/* 改行用のクラス*/
.break-point {
  display: inline-block;
}

/* カーソルチェック枠のコンテナ（グリッドレイアウト） */
.cursor-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1500px;
  margin: 0 auto;
}

/* 各カーソルボックスのスタイル */
.cursor-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-size: 16px;
  font-weight: 300;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; /* 子要素（波紋）が絶対配置できるように */
  overflow: hidden;   /* 波紋が枠外に飛び出さないように */
}

/* ホバー時の軽い下がりエフェクト */
.cursor-box:hover {
  transform: translateY(3px);
  box-shadow: none;
}
/* 通常の選択 */
.default {
  cursor: default;
}
/* ヘルプの選択 */
.help {
  cursor: help;
}
/* バックグラウンドで作業中 */
.progress {
  cursor: progress;
}
/* 待ち状態 */
.wait {
  cursor: wait;
}
/* 領域選択 */
.crosshair {
  cursor: crosshair;
}
/* テキスト選択 */
.text {
  cursor: text;
}
/* 利用不可 */
.not-allowed {
  cursor: not-allowed;
}
/* 上下に拡大/縮小 */
.ns-resize {
  cursor: ns-resize;
}
/* 左右に拡大/縮小 */
.ew-resize {
  cursor: ew-resize;
}
/* 斜めに拡大/縮小1 */
.nesw-resize {
  cursor: nesw-resize;
}
/* 斜めに拡大/縮小2 */
.nwse-resize {
  cursor: nwse-resize;
}
/* 移動 */
.move {
  cursor: move;
}
/* リンクの選択 */
.pointer {
  cursor: pointer;
}

/* 生成される波紋のスタイル */
.ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  from {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  to {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

/* 画面幅が狭い場合の調整 */
@media (max-width: 600px) {
h1{
  margin: 8px auto;
  font-size: 25px;
}

p{
  margin: 0px auto;
  font-size: 13px;
}

.divider {
  margin: 20px auto 8px;
}
  .cursor-container {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    max-width: 800px;
    gap: 10px;
  }
  .cursor-box {
    height: 100px;
    font-size: 13px;
  }
}
