
/* 利用規約モーダル */
#termsModal {
    display: none; /* デフォルトは非表示 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100dvw;
    height: 100dvh;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8); /* 背景を暗くする */
  }
  
  #termsModal .terms-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 60px auto;
    width: 90%;
    max-width: 800px;
    height: calc(100dvh - 120px);
    border-radius: 10px;
    transform: translateY(0%);
    transition: transform 0.5s ease-in-out, top 0.5s ease-in-out;
  }
  
  #termsModal .terms-modal-scroll {
    height: calc(100dvh - 120px);
    padding: 20px 20px;
    overflow-y: auto;
  }
  #termsModal .terms-modal-radius {
    border-radius: 10px;
    overflow: hidden;
  }
  #termsModal .close {
    position: absolute;
    top: -30px;
    right: 5px;
    width: 16px;
    height: 16px;
    display: inline-block;
    opacity:inherit;
  }
  
  #termsModal .close:hover {
    cursor: pointer;
  }
  
  #termsModal .close:before,
  #termsModal .close:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 21px;
    height: 2px;
    background-color: #fff;
  }
  
  #termsModal .close:before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  
  #termsModal .close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  #termsModal .text-center {
    text-align: center;
  }
  #termsModal .modal-title {
    font-size: 24px;
    font-weight: bold;
    color:#FF4453;
  }
  #termsModal .terms-modal-header {
    border-bottom: 1px dotted #e71e19;
  }
  #termsModal .terms-modal-header, .terms-modal-body {
    padding: 10px 40px;
    position: relative;
  }
  #termsModal h4 {
    margin-top: 10px;
  }
  #termsModal p {
    text-align: justify;
    text-indent: 1em;
  }
  #termsModal h4, #termsModal h5 {
    font-weight: bold;
    margin-bottom: 10px;
  }
  #termsModal ol,
  #termsModal ul {
    padding-left: 30px;
    list-style: number;
    text-align: justify;
  }
  #termsModal p + h5,
  #termsModal ol + h5,
  #termsModal ul + h5 {
    margin-top: 20px;
  }
  
  
  #termsModal ul.original_parentheses >li{
    list-style: none;
    padding-left: 0px;
    text-indent: -1em;
  }
  
  #termsModal ul.parentheses >li {
      list-style-type: none;
      counter-increment: cnt;
  }
   
  #termsModal ul.parentheses >li::before {
      content: "(" counter(cnt) ")";
    margin-left:-1.5em;
      width: 3em;
  }
  
  #termsModal a.link {
    color: royalblue;
    text-decoration: underline;
  }
  #termsModal .button-close {
    margin: 20px auto;
  }


  
  
  /* スマートフォン対応 */
  @media screen and (max-width: 767px) {
    #termsModal .terms-modal-content {
      width: 90%;
      margin: 20% auto;
    }
    #termsModal .terms-modal-header, .terms-modal-body {
      padding: 10px 10px;
      position: relative;
    }
    #termsModal .modal-title {
      font-size: 18px;
    }
  }