@charset "utf-8";
/* =============================================================

  Modal CSS

============================================================= */

/* -------------------------------

  Basic
  
------------------------------- */

@supports selector(:has(+ *)) {
  html:has(.modal.is-open) {
    overflow: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  body:has(.modal.is-open) {
    border-right: solid var(--scroll-width, 15px) #363636;
  }
  @media screen and (max-width: 468px) {
    body:has(.modal.is-open) {
      border-right: none;
    }
  }
}

button[role="button"] {
  font-family: inherit;
  overflow: visible;
  text-transform: none;
  font-size: 1rem;
  font-weight: 700;
  color: #000000;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

button[role="button"] figure > div {
  width: 100%;
  aspect-ratio: 40/57;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

button[role="button"] figure img {
  display: block;
  background-color: #e3e3e3;
  width: 100%;
  /*aspect-ratio: 40/57;*/
  object-fit: cover;
  transition: 1s all ease-out;
}

.top-message button[role="button"] figure > div,
.top-message button[role="button"] figure img {
  aspect-ratio: 31/38
}

button[role="button"]:hover figure img {
  transform: scale(1.05);
}

button[role="button"] figcaption {
  font-weight: normal;
  line-height: 1.3;
}

.modal{
  display: none;
}

.modal.is-open {
  display: block;
}

.modal .overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-container {
  background-color: #FFFFFF;
  padding: clamp(1.2rem, -0.0405rem + 5.2926vw, 2.5rem);
  max-width: 960px;
  width: calc(100% - 0.5rem - 0.5rem);
  max-height: 90%;
  max-height: 90dvh;
  overflow-y: auto;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  overscroll-behavior-y: contain;
}

@media screen and (max-width: 468px) {
  .modal-container {
/*
    height: 90%;
    height: 90svh;
*/
    position: absolute;
    top: calc(5rem + 0.5rem);
    max-height: 90%;
    max-height: 90dvh;
  }
}

.modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: solid 1px #ccc;
}

.modal header .close {
  width: 4rem;
  height: 4rem;
  padding: 0px;
  border: 0;
  font-size: 0.875rem;
  color: #797979;
  letter-spacing: 0.1rem;
  text-align: center;
  background-color: transparent;
  cursor: pointer;
}

.modal header .close:focus {
  outline: none;
}

.modal header .close:focus-visible {
  outline: initial;
}

.modal header .close > .close-mark {
  display: inline-block;
  width: 2.25rem;
  aspect-ratio: 1;
  background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/PjxzdmcgaGVpZ2h0PSI0MHB4IiB3aWR0aD0iNDBweCIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmlld0JveD0iMCAwIDM3OC4zMDMgMzc4LjMwMyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBvbHlnb24gc3R5bGU9ImZpbGw6I0ZGMzUwMTsiIHBvaW50cz0iMzc4LjMwMywyOC4yODUgMzUwLjAxOCwwIDE4OS4xNTEsMTYwLjg2NyAyOC4yODUsMCAwLDI4LjI4NSAxNjAuODY3LDE4OS4xNTEgMCwzNTAuMDE4IDI4LjI4NSwzNzguMzAyIDE4OS4xNTEsMjE3LjQzNiAzNTAuMDE4LDM3OC4zMDIgMzc4LjMwMywzNTAuMDE4IDIxNy40MzYsMTg5LjE1MSAiLz48L3N2Zz4=");
  background-position: top center;
  background-size: contain;
  background-repeat: no-repeat;
}

#modal-title {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 700;
  font-size: 2rem;
  font-family: "ヒラギノ明朝 ProN W3","Hiragino Mincho ProN","ＭＳ Ｐ明朝","MS PMincho";
}

#modal-title > span {
  font-size: 1rem;
}

.modal-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
  line-height: 1.5;
}

.modal-content.long_s {
  display: flow-root;
}

.modal-content img {
  display: block;
  width: 100%;
  max-width: 310px;
  height: auto;
}

.modal-content.long_s > div:first-child {
  float: left;
  margin-right: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.modal-content.long_s > div:first-child > small {
  position: absolute;
  bottom: -2.2em;
  left: 0;
}

.modal-content h3 {
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.modal-content.long_s p {
  text-indent: 1em;
  margin-bottom: 1em;
  width: 100%;
  max-width: 100%;
}

.modal-content img + h3 {
  line-height: 1.2;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.modal-content h3 > span {
  font-weight: 700;
  font-size: 1.25em;
}

.modal-content .A + .Q {
  margin-top: 1.2em;
}

.modal-content .Q::before {
  content: 'Q';
  font-family: "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "ＭＳ Ｐ明朝", "MS PMincho";
  font-size: 1.6em;
  font-weight: 700;
  padding-right: 0.4em;
/*  color: #f19a97;*/
  color: #DD004B;
}

.modal-content .A::before {
  content: 'A';
  font-family: "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "ＭＳ Ｐ明朝", "MS PMincho";
  font-size: 1.6em;
  font-weight: 700;
  padding-right: 0.4em;
/*  color: #97ccf1;*/
  color: #333333;
}

.modal-content p {
  max-width: min(48ch, 500px);
/*  word-break: break-all;*/
  word-wrap: break-word;
}

.company-message .modal-content img {
  max-width: 46ch;
  width: auto;
}

.company-message .modal-content img[src$="baynet.png"] {
  max-width: 56ch;  /* ベイネット個別幅調整 */
}

.company-message .modal-content h3 {
  margin-top: 3rem;
}

.company-message .modal-content p {
  max-width: 76ch;
}

.modal-content .qanda p {
  padding-left: 1.92em;
  text-indent: -1.92em;
}

@media screen and (max-width: 768px) {
  .modal-content div:last-child {
    width: 100%;
  }
  .modal-content p {
    max-width: 100%;
  }
  .modal-content.long_s img {
    float: none;
    margin-right: auto;
    margin-left: auto;
  }
  
  .company-message .modal-content img {
    width: 100%;
  }
}


/* -------------------------------

  Transition
  
------------------------------- */

@keyframes mmfadeIn {
  from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes mmfadeOut {
  from { opacity: 1; }
    to { opacity: 0; }
}

.modal[aria-hidden="false"] .overlay {
  animation: mmfadeIn .6s cubic-bezier(0.0, 0.0, 0.2, 1);
  z-index: 8;
}

.modal[aria-hidden="true"] .overlay {
  animation: mmfadeOut .6s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.modal .modal-container,
.modal .overlay {
  will-change: transform;
}
