@charset "UTF-8";
.agreementModal {
  font-family: 'Noto Sans JP', sans-serif, 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, Osaka,
    'ＭＳ Ｐゴシック', 'MS PGothic';
  color: #333;
  z-index: 1000;
}
.agreementModal_wrapper {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  overscroll-behavior: contain;
  overflow-y: scroll;
}
.agreementModal_wrapper::before,
.agreementModal_wrapper::after {
  content: '';
  width: 1px;
  height: calc(100vh + 1px);
  display: flex;
}
.agreementModal_wrapper.display {
  display: flex;
}
.agreementModal_content {
  /* スタイリングのみ */
  width: 80vw;
  max-width: 500px;
  max-height: 80vh;
  max-height: 80svh;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  box-sizing: border-box;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}
.agreementModdal_header {
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.1em;
}
.agreementModdal_header span {
  display: block;
  margin-top: 0.5rem;
  font-weight: 400;
  font-size: 0.8em;
}
.agreementModal_main {
  background-color: #f7f7f7;
  padding: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9em;
  overflow-y: scroll;
}
.agreementModal_main ol li {
  margin-bottom: 0.5rem;
  font-size: 1em;
}
.agreementModal_main ol li span {
  display: block;
  font-size: 0.8em;
  margin-top: 0.3rem;
}

@media (min-width: 768px) {
  .agreementModal_main ol li {
    font-size: 1.2em;
  }
}

.agreementModal_buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem auto;
}
.agreementModal_buttons--yes,
.agreementModal_buttons--no {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  min-width: 12em;
  margin-bottom: 1rem;
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9em;
  text-align: center;
}
.agreementModal_buttons--yes:hover,
.agreementModal_buttons--no:hover {
  opacity: 0.7;
}
.agreementModal_buttons--yes {
  background-color: #004191;
  border: transparent;
  color: #fff;
}
.agreementModal_buttons--no {
  background-color: transparent;
  border: 1px solid #004191;
  color: #004191;
  text-decoration: none;
}

.agreementMessage {
  /* 同意が必要です or ありがとうございますテキスト */
  position: relative;
  z-index: 100;
  background-color: #808080;
  padding: 0.5rem 0.75rem;
  color: #fff;
  font-size: 0.9em;
}
.agreementMessage.display {
  background-color: #004191;
  color: #fff;
}
.agreementMessage_button {
  padding: 0.1rem 0.5rem;
  background-color: #fff;
  color: #333;
}

body {
  /* modalには関係のないcss */
  position: relative;
}

/* 追加css */

.agreementModal_main p:first-child {
  margin: 1rem 0;
}
.agreementModal_main ol {
  display: block;
  list-style-type: decimal;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  padding-inline-start: 30px;
}
