/* =======================================================================
   nursery-school Page Styles
======================================================================= */

.nursery-school_table {
  th,
  td {
    border: none;
    border-bottom: 1px solid var(--wp--preset--color--custom-purple);
    line-height: 1.7rem;
    padding: 1.5rem 1rem;
  }
  th {
    text-align: start;
    width: 20%;
  }
  td {
    width: 80%;
  }
}

.nursery-school_schedule {
  list-style: none;
  padding-left: 0.85rem;
  > li {
    border-left: 2px var(--wp--preset--color--custom-purple) solid;
    padding: 0.25rem 0 0.25rem 1rem;
  }
  div {
    display: inline-block;
  }
  .nursery-school_schedule_time {
    min-width: 4em;
    text-align: end;
    padding-right: 1rem;
  }
}

/* チェックボックス */
.nursery-school_check {
  display: flex;
  flex-direction: row;
  column-gap: 4px;
  width: 100%;
  line-height: 1;
  cursor: pointer;
  padding-left: 1rem;

  label {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .nursery-school_check_input {
    appearance: none;
    position: relative;
    top: 0.4rem;
    width: 1.2rem;
    height: 1.2rem;
    border: 1px solid var(--wp--preset--color--custom-purple);
    border-radius: 8px;
    cursor: pointer;
    line-height: 1.7;
  }

  .nursery-school_check_input:checked {
    background-color: var(--wp--preset--color--custom-purple);
  }

  .nursery-school_check_input:checked::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 3px;
    width: 12px;
    height: 6px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(-45deg);
  }
}

/* =======================================================================
   Googleマップ
======================================================================= */

.nursery-school_map {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9のアスペクト比 */
  height: 0;

  iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}
/* =======================================================================
   Media Query
======================================================================= */
/* for Desktop */

@media (max-width: 768px) {
  /* チェックボックス */
  .nursery-school_check {
    flex-direction: column;
  }
  .nursery-school_table {
    th,
    td {
      box-sizing: border-box;
      display: inline-block;
      width: 100%;
    }
    th {
      border: none;
      padding: 1rem 0.25rem 0.25rem;
    }
    td {
      padding: 0.25rem 0.25rem 1rem;
    }
  }
}
