@media screen and (min-width: 641px) {
  .page-ambassador #c-body #main {
    margin-top: 595px;
  }


  .page-ambassador #c-body {
    background: url(https://test.sudaseihan.com/kitami-mylove/wp01/wp-content/themes/kitami-mylove01/img/head-image/ambassador.jpg) no-repeat center top;
  }

  .page-ambassador #c-body #main .page-title2 {
    display: block;
    width: 100%;
    font-size: 3.2em;
    font-weight: normal;
    color: #68261a;
    padding-bottom: 10px;
    border-bottom: solid 1px #68261a;
    margin-bottom: 30px;
    text-align: center;
  }

  .page-ambassador #c-body #main p {
    font-size: 1.3em;
    display: block;
    margin: 10px;
    text-align: left;
  }

  .modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
  }

  .modal-inner {
    background: #fff;
    max-width: 800px;
    width: 100%;
    padding: 30px;
    position: relative;
    border-radius: 20px;
  }

  .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
  }

  .ambassador-list {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 20px;
    margin-bottom: 10px;
    border-bottom: solid 1px #ccc;
  }

  .ambassador-item {
    width: 33.3%;
  }

    .ambassador-item:hover {
 cursor: pointer;
  }

    #main .inner .ambassador-item img{
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 0;
  }


  .term-list.hashtag-list a {
    background: #68261a;
    color: #fff;
    padding: 15px 20px;
    border-radius: 5px;
    margin-right: 10px;
    font-size: 1.6em;
  }

  .ambassador-list {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: solid 1px #ccc;
}



.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
}

.modal-inner {
  background: #fff;
  max-width: 800px;
  width: 90%;
  padding: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
}

  .ambassador-detail h2 {
    display: block;
    font-size: 3.2em;
    font-weight: normal;
    color: #68261a;
    padding-bottom: 10px;
    border-bottom: solid 1px #68261a;
    margin-bottom: 30px;
    text-align: center;
  }

  .ambassador-detail img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 20px;
  }



  .photo-text p {
    font-size: 1.3em;
  }


  .photo-link a {
    font-size: 1.3em;
  }

}


@media screen and (max-width: 640px) {

    .page-ambassador #c-body #main {
    margin-top: 195px;
  }


  .page-ambassador #c-body {
    background: url(https://test.sudaseihan.com/kitami-mylove/wp01/wp-content/themes/kitami-mylove01/img/head-image/ambassador.jpg) no-repeat center top;
    background-size: 200%;
  }


  .page-ambassador #c-body #main .page-title2 {
    display: block;
    width: 100%;
    font-size: 2.4em;
    font-weight: normal;
    color: #68261a;
    padding-bottom: 10px;
    border-bottom: solid 1px #68261a;
    margin-bottom: 30px;
    text-align: center;
  }

  .page-ambassador #c-body #main p {
    font-size: 1.3em;
    display: block;
    margin: 10px;
    text-align: left;
  }

  .ambassador-list {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: solid 1px #ccc;
  }

    .ambassador-item {
    width: 33.3%;
  }

  #main .inner .ambassador-item img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 0;
  }

    .term-list.hashtag-list a {
    background: #68261a;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 10px;
    font-size: 1.3em;
    display: inline-block;
    margin-bottom: 10px;
  }

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
}

.modal-inner {
  background: #fff;
  width: 90%;
  padding: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
}

.modal-close {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  font-size: 24px;
  transform: translateX(-50%);
}

  .ambassador-detail h2 {
    display: block;
    font-size: 2em;
    font-weight: normal;
    color: #68261a;
    padding-bottom: 10px;
    border-bottom: solid 1px #68261a;
    margin: 0 auto 30px;
    width: 90%;
    text-align: center;
  }

  .ambassador-detail img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 20px;
  }



  .photo-text p {
    font-size: 1.3em;
  }


  .photo-link a {
    font-size: 1.3em;
  }


}