/* モーダル */
.close-btn {
  position: absolute;
  top: 0;
  right: 10px;
  font-size: 1.6rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  font-weight: bold;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.modal.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  padding: 1.5em;
  border-radius: 10px;
  max-width: 960px;
  width: 90%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.66);
  position: relative;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  margin-top: 0;
  display: grid;
  gap: 1rem;
  line-height: 1.5;
  overflow: auto;
  height: 500px;
  font-size: 0.875rem;
}
@media print,
screen and (min-width: 768px) {
  .modal-content {
    padding:2em;
    height: auto;
    font-size: 1rem;
    gap: 30px;
  }
}


/* h2 */
.modal-content h2{
  font-size: 1.25rem;
  font-weight: bold;
}
@media print,
screen and (min-width: 768px) {
.modal-content h2{
  font-size: 1.5rem;
}
}

/* modal-list */
.modal-content ul.modal-list{
  padding: 1em;
}
.modal-content ul.modal-list > li{
  display: flex;
  gap: 5px;
}
.modal-content ul.modal-list > li:not(:last-child){
  margin-bottom: 20px;
}

@media print,
screen and (min-width: 768px) {
  .modal-list.scroll-list{
    height: 300px;
    overflow: auto;
    border: solid 1px #D1D1D1;
  }
}

.modal-list ul.modal-detaillist{
margin-top: 10px;
}
.modal-list ul.modal-detaillist li{
  text-indent: -1em;
    padding-left: 1em;
}
.modal-list ul.modal-detaillist li:not(:last-child){
  margin-bottom: 10px;
}

.modal-content .c-textlinkLine.c-text-accent{
  font-weight: bold;
}

/* modal_btn */
.modal-content .modal_btn{
  background: #006FBC;
  color: #FFFFFF;
  border-radius: 10px;
  display: inline-block;
    padding: 1em;
    width: 100%;
    letter-spacing: .05em;
    text-align: center;
    cursor: pointer;
    transition: .3s all ease-out;
    margin: 0 auto;
    font-size: 1rem;
    font-weight: bold;
    height: fit-content;
}

@media (min-width: 768px) {
  .modal-content .modal_btn{
      width: 360px;
      font-size: 1.125rem;
  }
}

@media (hover: hover) {
.modal-content .modal_btn:hover{
    opacity: 0.8;
}}


.modal.active .modal-content {
  animation: fadeInScale 0.4s ease forwards;
}

@keyframes fadeInScale {
  0% {
      opacity: 0;
      transform: scale(0.8);
  }
  100% {
      opacity: 1;
      transform: scale(1);
  }
}



/* ページ */

@media print,
screen and (min-width: 768px) {
	.p-index_list {
		margin-bottom: initial;
	}
}
.p-index_list:first-of-type {
  margin-top: 40px;
}

@media print,
screen and (min-width: 768px) {
  .p-index_list:first-of-type {
    margin-top: 0;
}
}
.p-index_listLink:last-child{
  margin-bottom: 40px;
}

.c-textlink.open-modal{
cursor: pointer;
}
