/* assets/css/modal.css */

/*-----------------------------------
  モーダル全体のスタイル(たぶんトップページのモーダル)
-----------------------------------*/
#read-more-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
  }
  
  #read-more-modal.active {
    display: flex;
  }
  
  .modal-content {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    box-sizing: border-box;
  }
  
  .modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
    transition: color 0.3s ease;
  }
  
  .modal__close:hover {
    color: #007BFF;
  }
  
  .modal__close:hover::after {
    content: " 戻る";
    font-size: 16px;
    color: #007BFF;
    margin-left: 5px;
  }
  
  .modal__title {
    flex: 0 0 auto;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    font-family: sans-serif;
  }
  
  .modal__desc {
    flex: 1 1 auto;
    overflow-y: auto;
    margin-bottom: 20px;
    font-size: 16px;
    font-family: sans-serif;
  }
  
  .modal__detail {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 20px;
    font-size: 16px;
    font-family: sans-serif;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px 0;
    background-color: #007BFF;
    color: #fff;
    transition: background-color 0.3s ease;
  }
  
  .modal__detail:hover {
    background-color: #0056b3;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }