:root{
  --accent:#2b70f5;
  --muted:#666;
  --bg:#fbfcff;
}
*{box-sizing:border-box}
body{
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
  background:var(--bg);
  color:#111;
  margin:0;
  padding:2rem;
  display:flex;
  justify-content:center;
}
#app{
  width:100%;
  max-width:980px;
}
h1{margin:0 0 1rem 0; font-size:1.5rem}
#controls{background:#fff;padding:1rem;border-radius:10px;box-shadow:0 4px 18px rgba(20,30,50,0.06);margin-bottom:1rem}
#controls button{
  margin-right:.5rem;
  padding:.5rem .8rem;
  border-radius:8px;
  border:1px solid rgba(0,0,0,0.08);
  background:white;
  cursor:pointer;
}
#controls button:disabled{opacity:.5;cursor:not-allowed}
.sliders{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1rem}
.sliders label{display:flex;flex-direction:column;font-size:.95rem;color:var(--muted)}
.sliders input[type=range]{width:220px;margin-top:.35rem}
#status{margin-top:.6rem;color:var(--muted)}
#visual{display:flex;gap:1rem;flex-wrap:wrap}
.canvasBlock{flex:1;min-width:300px;background:#fff;padding:.6rem;border-radius:8px;border:1px solid #eee}
canvas{display:block;width:100%;height:auto;border-radius:6px;background:#fff}
#resultArea{margin-top:.8rem}
#result{font-weight:600}
footer{margin-top:.8rem;color:var(--muted);font-size:.9rem}

.button:hover {
  background: #f0f0f0; /* ホバー時に少し反応 */
}

/*カット周波数の説明*/
.term {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted #999;
}
.term::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 0;
  background: #fff7d1;
  color: #222;
  border: 1px solid #ccc;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.term:hover::after,
.term:focus::after {
  opacity: 1;
}

/*Q値の説明*/
.Qterm {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted #999;
}
.Qterm::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 0;
  background: #fff7d1;
  color: #222;
  border: 1px solid #ccc;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.Qterm:hover::after,
.Qterm:focus::after {
  opacity: 1;
}



.back-button {
  background: white;
  color: black;
  border: 1px solid black;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
}

.back-button:hover {
  background: #f0f0f0; /* ホバー時に少し反応 */
}



#controls button {
  margin-right: .5rem;
  padding: .5rem .8rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  background: white;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

/* ✅ ホバー時 */
#controls button:hover {
  background: #f0f0f0;       /* 少しグレーに */
  transform: translateY(-2px); /* ほんの少し上に浮く感じに */
}



