h1 {
  margin-top: 30px;
}

a.download {
  width: 100% !important;
  margin-top: 20px;
}

a.pamf_btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: #fcdd46;
  padding: 20px;
  border-radius: 10px;
  transition: 0.3s;
  font-weight: bold;
  font-size: 1.2em;
  margin-top: 20px;
}

a.pamf_btn::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  top: 50%;
  right: 20px;
  margin-top: -5px;
  border: solid #fff;
  border-width: 3px 3px 0 0;
  transform: rotate(45deg);
}

a.pamf_btn:hover {
  background-color: #fff1aa;
  transition: 0.3s;
}

/* 2026カラー */
body.nybp2026 a.pamf_btn {
  color: #fff;
  background-color: #ee7800;
}

body.nybp2026 a.pamf_btn:hover {
  background-color: #ffba00;
}

body.nybp2026 div.trade h3 {
  display: block;
  font-size: 16px;
  padding: 5px 0 5px 15px;
  color: #fff;
  background-color: #bb511f;
  margin-bottom: 5px;
}

body.nybp2026 div.trade h4 {
  line-height: 1.5;
  color: #bb511f;
}

div.application {
  display: flex;
  justify-content: space-between;
  margin: 20px 0 30px;
}

a.linkbox {
  text-align: center;
  line-height: 1.5;
  font-weight: bold;
  width: 32%;
  padding: 20px 5px;
}

a.linkbox.close {
  color: var(--gray2);
  background-color: var(--l_gray);
  cursor: default;
}

a.linkbox.joinform {
  margin: 20px 0;
  width: 100%;
}

div.trade_box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

picture.trade_img {
  display: block;
  width: 40%;
}

div.trade_box img {
  border-radius: 4px;
}

div.trade {
  display: block;
  width: calc(60% - 20px);
}

div.trade h3 {
  display: block;
  font-size: 16px;
  padding: 5px 0 5px 15px;
  color: #fff;
  background-color: var(--l_blue);
  margin-bottom: 5px;
}

div.trade h4 {
  line-height: 1.5;
  color: var(--l_blue);
}

div.trade p {
  font-size: 16px;
  line-height: 1.5;
  margin-top: 5px;
}

div.list > div > p {
  width: 25%;
}

div.list > div > div {
  width: 75%;
}

div.list > div > div p {
  display: block;
}

span.tab {
  display: inline-block;
  width: 150px;
}

span.tab22 {
  display: inline-block;
  width: 400px;
}

div.schedule {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

div.schedule p {
  display: block;
}

div.schedule p:nth-child(odd) {
  width: 150px;
}

div.schedule p:nth-child(even) {
  width: calc(100% - 160px);
}

p.small {
  margin-top: 5px;
}

section img.topimg {
  margin: 20px 0;
}

div.trade img {
  margin-top: 20px;
}

div.photos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 30px 0;
}

div.photos figure {
  display: block;
  width: calc(33.3333% - 2px);
  margin-bottom: 2px;
  border-radius: 5px;
}

div.photos figcaption {
  font-size: 14px;
  text-align: right;
  margin-top: 3px;
}

/*ホテルPOPUP*/
.modal-window {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-window[aria-hidden="true"] {
  display: none;
}

.modal-window .content {
  position: relative;
  box-sizing: border-box;
  border: none;
  margin: 20px;
  padding: 20px;
  width: 100%;
  max-width: 600px;
  background-color: #fff;
  border-radius: 10px;
}

.modal-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.modal-window .content p {
  font-size: 120%;
  margin-bottom: 20px;
}

.modal-window .content a.linkbox {
  width: 100%;
}

/* 閉じるボタン */
.modal-window .content .close {
  border: none;
  position: absolute;
  top: 3px;
  right: 3px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  background:
    linear-gradient(#fff, #fff) 50% 50% / 3px 66% no-repeat,
    #a0a0a0 linear-gradient(#fff, #fff) 50% 50% / 66% 3px no-repeat;
  font-size: 0;
  transform: rotate(45deg);
  transition: background-color 0.2s;
}

.modal-window .content .close:hover,
.modal-window .content .close:focus {
  background-color: #444;
}

@media only screen and (max-width: 1050px) {
  div.photos figure {
    width: calc(50% - 20px);
    margin-bottom: 30px;
  }
}

@media only screen and (max-width: 800px) {
  div.application {
    display: block;
    margin-top: 20px;
  }

  a.linkbox {
    width: 100%;
    text-align: left;
  }

  div.trade_box {
    display: block;
  }

  picture.trade_img {
    width: 100%;
  }

  div.trade {
    display: block;
    width: 100%;
    margin-top: 20px;
  }

  div.trade h3 {
    padding: 5px 0 5px 15px;
    border-radius: 4px;
  }

  div.trade h4 {
    margin: 15px 0 10px;
  }

  div.trade p {
    font-size: 16px;
    line-height: 1.5;
    margin-top: 5px;
  }

  div.list > div {
    border: none;
  }

  div.list > div > p {
    display: inline-block;
    width: 100%;
    position: relative;
    color: var(--JBAblue);
    font-weight: bold;
    padding-left: 20px;
  }

  div.list > div > p::before {
    content: "■";
    display: inline-block;
    position: absolute;
    bottom: -6px;
    left: 0px;
    font-size: 180%;
    margin-right: 5px;
  }

  div.list > div > div {
    width: 100%;
  }

  div.photos {
    display: block;
  }

  div.photos figure {
    width: 100%;
    margin-bottom: 30px;
  }
}
