/* 基础字体与颜色 */
body {
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", "Yu Gothic", "MS PGothic", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #f7f7f7;
  color: #333;
}

/* 页眉 */
header {
  background: #3e8ed0;
  color: white;
  padding: 20px;
  text-align: center;
}

header h1 {
  color: white;
}

/* 页body */
main {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* 标题颜色 */
h1, h2 {
  color: #3e8ed0;
}

/* 页脚 */
footer {
  text-align: center;
  padding: 10px;
  font-size: 0.9em;
  color: #777;
}

/* 跟读材料展示页面 */
/* PDF 和音频 */
iframe.pdf-viewer {
  width: 100%;
  height: 600px;
  border: 1px solid #ccc;
  margin-bottom: 20px;
}

iframe.audio-player {
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
  height: 120px;
}

/* スマホを使う時、音声再生の案内 */
.audio-tip {
  background-color: #f0f8ff; /* 柔和浅蓝色 */
  color: #333;
  font-size: 1rem;
  padding: 0.4em 0.8em;       /* ↓ 减少上下 padding */
  margin: 0.8em 0 0.4em;      /* ↓ 减少上下外距 */
  border-left: 4px solid #3e8ed0;
  border-radius: 4px;
  font-weight: 500;
}

/* アンケートボタン */
a.survey-button {
  display: inline-block;
  padding: 6px 16px;
  background-color: #3e8ed0;
  color: #fff;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 600;
  margin: 8px 0;
  box-shadow: 0 4px 8px rgba(62, 142, 208, 0.3);
  transition: background-color 0.3s, box-shadow 0.2s, transform 0.1s;
  cursor: pointer;
  user-select: none;
  text-align: center;
  /* 下面让按钮宽度随内容变化，且在移动端更容易点击 */
  min-width: unset;
}

/* 鼠标悬停时变色和阴影加深 */
a.survey-button:hover {
  background-color: #2c6fac;
  box-shadow: 0 6px 12px rgba(44, 111, 172, 0.5);
  transform: translateY(-2px);
}

