@charset "utf-8";

p{
    text-align: left;
}
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table{
    width: 100%;
    border-collapse: collapse;
    border: none;
}
th, td{
    padding: 8px;
    text-align: left;
    border: none;
}
th{
    cursor: pointer;
    background-color: #f4f4f4;
}
tr:nth-child(even){
    background-color: aliceblue;
}
.modal{
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.modal-content{
    background-color: white;
    padding: 0.7rem;
    margin: 5% auto;
    width: 100%;
    max-width: 80%;
    max-height: 90vh;
    height: 80%;
    border-radius: 3px;
    overflow-y: scroll;
    word-wrap:break-word;
    word-break: break-word;
    white-space: normal;

}
.close{
    float: right;
    font-size: 24px;
    cursor: pointer;
}
.modal .modal-content #companyDetails dl{
    margin: 5px auto;
    width: 90%;
    max-width: 70%;
    /* display: grid;
    grid-template-columns: 40% 1fr;
    justify-content: center; */
    /* grid-template-rows: ; */
}
.modal .modal-content #companyDetails dt{
    font-weight: 500;
    color: #fff;
    background-color: cornflowerblue;
    padding: 5px;
    border-bottom: 1px solid #fff;
    border-radius: 3px;
}
.modal .modal-content #companyDetails dd{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-left: 0.5rem;
    margin-bottom: 20px;
    padding: 5px;
    border-left: none;
    white-space: pre-wrap;
    word-break: break-word;
}
#companyDetails dd .sns-link {
    display: inline-block;
    margin: 3px 0px 5px 0px;
    word-break: break-all; /* 長いURLも折り返し */
}

@media (max-width: 600px) {
  th, td {
    font-size: 0.9em;
    padding: 0.4em;
  }

  #modal .modal-content {
    margin: 20% auto;
    padding: 1rem;
    max-width: 90%;
  }

  .close {
    font-size: 1em;
  }
}
