body {
  margin: auto;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: #222;
}
img {
  width: 100%;
  max-width: fit-content;
}
p, div {
  margin: 20px auto;
}

/* Webkitブラウザ（Chrome、Safari、Edgeなど）の場合 */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefoxの場合 */
input[type="number"] {
  -moz-appearance: textfield;
}

div.floatnone {
  text-align: center;
}
div.quiz {
  /* max-width: 800px; */
  margin: auto;
}

header {
  margin-bottom: 10px;
  padding: 10px;
  border-bottom: #dee2e6 1px solid;
  /* background-color: yellowgreen; */
}
header .site_name {
  margin: 10px;
  float: left;
  /* font-weight: bold; */
}
/* header .site_name a {
  color: #222;
  text-decoration: none;
} */

footer {
  margin-top: 10px;
  padding: 10px;
  /* background-color: yellowgreen; */
  text-align: center;
}

/* パンくずリストの下部の移動ボタンや検索エリア */

/* モーダル */
div.modal,
div.modal div.modal-backdrop {
  margin: 0;
}
.modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
}

/* トップページ */
.toppage font {
  font-size: 0.8em;
}
.toppage div.container {
  max-width: 900px;
  margin: 20px auto !important;
}
.toppage table {
  width: 100%;
}
.toppage table td {
  padding: 3px 0;
}

/** 目次ページ **/
@media (max-width: 500px) {
  .listpage ol {
    padding-inline-start: 20px;
  }
}

/** point **/
.lse_unit-head {
  border-radius: 5px;
}
.lse_unit-head .lse_point {
  margin: 0 !important;
  padding: 10px !important;
  font-size: 16px !important;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
.lse_unit-head .lse_discription {
  padding: 20px !important;
}
.lse_unit-head .print_title-wrap {
  border-radius: 5px;
}

/** 詳細ページ **/
.detailpage div.mfp-content,
.detailpage div.mfp-figure,
.detailpage div.mfp-bg,
.detailpage div.mfp-container,
.detailpage div.mfp-wrap {
  margin: unset;
}
.detailpage img {
  max-width: 600px;
  width: 100%;
  border: 6px #eee solid;
  border-radius: 5px;
}
.detailpage img.mfp-img {
  border: none;
}
.detailpage p {
  /* max-width: 900px; */
  max-width: 1170px;
  width: 100%;
  text-indent:1em;
  margin: 0;
}
p.copyrightlink {
  max-width: 100%;
  margin: 0;
  text-align: right;
  text-indent: 0;
}
.detailpage table {
  margin: auto;
}
.detailpage .lse_unit-head table {
  margin: 0;
}
.detailpage td, .detailpage th {
  padding: 10px 20px;
}

/** チャレンジクイズ **/
.detailpage .quiz p {
  margin: 0;
  max-width: none;
  width: 100%;
  text-indent:1em;
}
.detailpage .quiz img {
  /* width: unset; */
}
.detailpage .quiz span.answer {
  padding: 3px 15px 3px 10px;
  border-radius: 3px;
  margin-right: 5px;
}
.detailpage .quiz span.answer.number {
  background: none !important;
  padding: 3px;
}
.detailpage .quiz span.answer input {
  margin-left: 5px;
}
.detailpage .quiz .video_area {
  margin-bottom: 20px;
  padding: 20px 0;
  background: none;
}

/** wiki からの出力 **/
.floatleft {
  float: left;
  margin-right: 20px;
}
.floatright {
  float: right;
  margin-left: 20px;
}
@media (max-width: 500px) {
  .floatleft {
    float: none;
    margin-right: 0px;
  }
  .floatright {
    float: none;
    margin-left: 0px;
  }
}

/** moodle と同じもの **/
.avoid-page-break {
  margin: 40px 0;
}

/* ページの動画 */
.detailpage .video_area {
  margin-bottom: 20px;
  padding: 20px 0;
  background:#eee;
  border-radius: 5px;
  text-align: center;
  text-indent:0em;
}
.detailpage video {
  max-width:700px !important;
  width: 100% !important;
}

/* ページのチャレンジクイズ */
h2.lse_challenge_quiz {
  font-weight: bold;
  margin-top: 40px;
}
.quiz {
  border: 3px #eee solid;
  padding: 20px;
  border-radius: 10px;
}
.quizQuestions .question {
  margin-bottom: 10px;
}
.quizQuestions .question .questionId {
  font-weight: bold;
}

.detailpage .imported-body img,
.quizQuestions .question img {
  margin: 10px 0 20px;
  cursor: pointer;
}

/* level image */
.quizQuestions .header {
  margin-right: 39px;
}
.quizQuestions .level_1 {
  background: url("https://life-science-edu.net/wiki/resources/assets/star_icons/icon_starblack_1.gif") no-repeat 27px 3px;
}
.quizQuestions .level_2 {
  background: url("https://life-science-edu.net/wiki/resources/assets/star_icons/icon_starblack_2.gif") no-repeat 24px 3px;
}
.quizQuestions .level_3 {
  background: url("https://life-science-edu.net/wiki/resources/assets/star_icons/icon_starblack_3.gif") no-repeat 18px 3px;
}
.quizQuestions .level_4 {
  background: url("https://life-science-edu.net/wiki/resources/assets/star_icons/icon_starblack_4.gif") no-repeat 18px 3px;
}
.quizQuestions .level_5 {
  background: url("https://life-science-edu.net/wiki/resources/assets/star_icons/icon_starblack_5.gif") no-repeat 18px 3px;
}

/* ====== ナビ＋検索を1行に並べる（左ボタン・右検索） ====== */
form.site-search-inline.form-inline {
    display: block;
    text-align: right;
    margin: 0;
    padding: 0;
}
.site-search-inline .category-select {
  display: inline-block;
}
.search-row {
    display: inline-block;
    margin: 0;
    padding-top: 5px;
    padding-right: 10px;
}
.site-search-inline select,
.site-search-inline input[type="search"] {
  width: auto;
  /* min-width: 140px; */
  max-width: 40rem;
}

.site-search-inline button {
  white-space: nowrap;
}
/* ====== スマホ時の縦レイアウト ====== */
@media (max-width: 600px) {
  .site-search-inline .category-select {
    /* margin: 20px auto; */
    width: 100%;
  }

  .site-search-inline .search-row {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .site-search-inline .search-row input[type="search"] {
    flex: 1;
    width: auto;
  }

  .site-search-inline .search-row button {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* 常時表示エリア */
.container {
    margin-top: 0px;
}
.floatarea {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    margin: 0 auto;
    padding: 10px 0 0;
}

/* Moodleのコース名 */
.course-name {
    margin: 0px auto 10px;
    font-weight: bold;
}
/* Moodleへ戻るボタン */
.course-name a,
.nav-buttons a.step_next {
    margin-left: 2rem;
    font-weight: normal;
}
.breadcrumb {
    margin-bottom: 10px;
}
/* アンカーリンクで常時表示領域の下に隠れないように */
ol.js-numbered > li {
    scroll-margin-top: 90px;
}
.header {
  margin: 0;
}
