@charset "utf-8";

@media (max-width: 767px) {
  body {
    overflow-wrap: break-word;
    hyphens: auto;
  }

  img {
    max-width: 100%;
  }

  main,
  #pageHeader,
  #header,
  #footer {
    width: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #header {
    display: none;
  }

  #footer .sitelink {
    display: flex;
    flex-direction: column;

    >li {
      padding-right: 0;
    }

    >li:not(:last-of-type)::after {
      display: block;
      width: 20px;
      margin: 15px auto 15px 0;
      border-bottom: #576376 solid 1px;
      content: '';
    }
  }

  /*
   * Safari 16.5-17.1 - Does not allow nesting of type (element) selectors without starting with a symbol, like the & nesting selector.
   * https://caniuse.com/css-nesting
   */

  #footer .sitelink dt {
    padding-bottom: 0;
  }

  #footer .sitelink dt::after {
    display: none;
  }
}

/*-------------------------------------
jsmea-news
-------------------------------------*/
.jsmea-news {
  padding-bottom: 40px;
}

.jsmea-news h2 {
  font-size: 36px;
  font-weight: normal;
  margin-bottom: 35px;

  @media (max-width: 767px) {
    font-size: 32px;
  }
}

.jsmea-news p {
  font-size: 1.6rem;
  line-height: 2.2;
  margin-bottom: 35px;

  @media (max-width: 767px) {
    line-height: 1.8;
  }
}

.jsmea-news .nippon-foundation {
  float: right;
  margin: 0 0 1rem;

  @media (max-width: 767px) {
    width: 70px;
    height: 70px;
    object-fit: cover;
  }
}

.jsmea-news table {
  width: 100%;
  background: rgb(255, 255, 255);
  margin-bottom: 20px;

  @media (max-width: 767px) {
    display: block;
    width: auto !important;
    border-bottom: 1px solid rgb(230, 230, 230);

    >*,
    >*>*,
    >*>*>* {
      display: block;
      width: auto !important;
    }
  }
}

.jsmea-news table th {
  width: 30%;
  padding: 25px;
  text-align: left;
  border: 1px solid rgb(230, 230, 230);
  background: rgb(250, 250, 250);
  font-weight: 300;
  vertical-align: middle;
  box-sizing: border-box;

  @media (max-width: 767px) {
    padding: 8px 16px;
    border-bottom: none;
  }
}

.jsmea-news table td {
  width: 70%;
  padding: 25px;
  border: 1px solid rgb(230, 230, 230);
  vertical-align: middle;
  box-sizing: border-box;

  @media (max-width: 767px) {
    padding: 16px;
    border-bottom: none;
  }
}

.jsmea-news table td .text-box {
  width: 100%;
  box-sizing: border-box;
}

.jsmea-news .entry {
  display: flex;
  justify-content: center;
  align-items: stretch;
  column-gap: 16px;
  text-align: center;
  margin: 20px 0;
  font-size: 24px;
  line-height: 1.8;

  @media (max-width: 767px) {
    flex-direction: column;
    margin-left: 40px;
    margin-right: 40px;
  }
}

.jsmea-news .register {
  margin: 10px 0px;
  padding: 15px 100px;
  font-size: 18px;
  text-align: center;
  color: rgb(0, 0, 0);
  background: rgb(255, 255, 255);
  border: 2px solid rgb(0, 0, 0);
  border-radius: 5px;
  cursor: pointer;
}

.jsmea-news .register:hover {
  color: rgb(255, 255, 255);
  background: rgb(0, 0, 0);
}

.jsmea-news .attention {
  text-align: center;
  margin: 30px 0 0;
  font-size: 18px;
  padding: 15px 0 20px;
  border-top: 1px solid rgb(0, 0, 0);
  border-bottom: 1px solid rgb(0, 0, 0);
  background: rgb(255, 255, 255);
}

.jsmea-news .attention label span:before {
  position: absolute;
  top: 10px;
  left: -5px;
  display: inline-block;
  content: '';
  box-sizing: border-box;
}

.jsmea-news .attention label span:after {
  position: absolute;
  top: 10px;
  left: -5px;
  display: inline-block;
  content: '';
  box-sizing: border-box;
}

.jsmea-news .attention-read {
  width: 100%;
  height: 300px;
  color: rgb(120, 120, 120);
  border-bottom: 1px solid rgb(0, 0, 0);
  overflow-y: scroll;

  @media (max-width: 767px) {
    width: auto;
    border-left: 1px solid rgb(0, 0, 0);
    border-right: 1px solid rgb(0, 0, 0);
    padding: 0 8px;
  }
}

.jsmea-news .attention-read h3 {
  text-align: center;
  font-size: 24px;
  font-weight: 300;
  padding: 30px 0;
}

.jsmea-news .attention-read h3 span {
  display: block;
  text-align: center;
  font-size: 16px;
  font-weight: 300;
  padding: 20px 0 0;
}

.jsmea-news .attention-read h4 {
  text-align: left;
  font-size: 18px;
  font-weight: 700;
}

.jsmea-news .attention-read p {
  text-align: left;
  font-size: 14px;
  font-weight: 300;
  margin: 10px 0 30px;
  line-height: 1.5;
}


/*-------------------------------------
form
-------------------------------------*/
label {
  cursor: pointer;
}

label {
  position: relative;
  display: block;
}

label span {
  display: block;
}

label input[type="checkbox"]+span {
  position: relative;
  padding: 0 0 0 26px;
}

label input[type="radio"]+span {
  position: relative;
  padding: 0 0 0 26px;
}

/* checkbox */
label input[type="checkbox"] {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

label input[type="checkbox"]+span:before {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  content: '';
  box-sizing: border-box;
}

label input[type="checkbox"]+span:after {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  content: '';
  box-sizing: border-box;
}

label input[type="checkbox"]+span:before {
  z-index: 0;
  width: 20px;
  height: 20px;
  border: solid 1px rgb(200, 200, 200);
  border-radius: 3px;
}

label input[type="checkbox"]+span::after {
  z-index: 1;
  margin: 4px 7px;
  width: 6px;
  height: 10px;
}

label input[type="checkbox"]:checked+span::before {
  background-color: rgb(255, 255, 255);
}

label input[type="checkbox"]:checked+span::after {
  border: solid 2.5px rgb(0, 80, 160);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  border-radius: 1px;
}

/* radio */
label input[type="radio"] {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

label input[type="radio"]+span::before {
  position: absolute;
  top: 4px;
  left: 0;
  display: inline-block;
  content: '';
  box-sizing: border-box;
}

label input[type="radio"]+span:after {
  position: absolute;
  top: 4px;
  left: 0;
  display: inline-block;
  content: '';
  box-sizing: border-box;
}

label input[type="radio"]+span:before {
  z-index: 0;
  width: 20px;
  height: 20px;
  border: solid 1px rgb(200, 200, 200);
  border-radius: 20px;
}

label input[type="radio"]+span::after {
  z-index: 1;
  margin: 5px;
}

label input[type="radio"]:checked+span::before {
  border-width: 1px;
}

label input[type="radio"]:checked+span::after {
  border: solid 5px rgb(0, 80, 160);
  border-radius: 5px;
}

/* text */
input[type="text"] {
  border: 0;
  outline: 0;
}

input[type="text"] {
  padding: 5px;
  border: 1px solid rgb(230, 230, 230);
  border-radius: 3px;
  font-size: 1.6rem;
  transition: border-color ease .2s;
}

input[type="text"]:focus {
  border-color: rgb(95, 152, 225);
}

/* textarea */
textarea {
  border: 0;
  outline: 0;
  font-family: sans-serif;
}

textarea {
  padding: 5px;
  border: 1px solid rgb(230, 230, 230);
  border-radius: 3px;
  font-size: 1.6rem;
  transition: border-color ease .2s;
}

textarea:focus {
  border-color: rgb(95, 152, 225);
}

/* select */
select {
  border: 0;
  outline: 0;
  max-width: 100%;
}

select {
  padding: 5px;
  border: 1px solid rgb(230, 230, 230);
  border-radius: 3px;
  font-size: 1.6rem;
  transition: border-color ease .2s;
}

select:focus {
  border-color: rgb(95, 152, 225);
}

/* submit */
input[type="submit"],
button[type="submit"] {
  padding: 10px 60px;
  font-size: 14px;
  color: rgb(0, 80, 160);
  background: rgb(255, 255, 255);
  border: 1px solid rgb(0, 80, 160);
  border-radius: 4px;
  cursor: pointer;
  appearance: none;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
  text-decoration: none;
  color: rgb(255, 255, 255);
  background: rgb(0, 80, 160);
  transition: all 0.2s ease-in-out 0s;
}
