.utato-shinobue {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 1.5em auto;
  container-type: inline-size;
}

.utato-shinobue__frame {
  display: block;
  width: 100%;
  height: 750px;
  border: 0;
  border-radius: 16px;
  background: #f6f8f6;
  overflow: hidden;
}

.utato-shinobue__expand,
.utato-shinobue__close {
  appearance: none;
  border: 0;
  border-radius: 9px;
  background: #136b5b;
  color: #fff;
  cursor: pointer;
  font: 700 14px/1.2 "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  box-shadow: 0 3px 12px rgba(23, 34, 53, .16);
}

.utato-shinobue__expand {
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 18px;
  padding: 10px 13px;
}

.utato-shinobue__expand:hover,
.utato-shinobue__expand:focus-visible,
.utato-shinobue__close:hover,
.utato-shinobue__close:focus-visible {
  background: #0c5548;
}

.utato-shinobue__modal[hidden] {
  display: none;
}

.utato-shinobue__modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 18, 25, .72);
}

.utato-shinobue__dialog {
  position: relative;
  width: min(1120px, 100%);
  height: min(720px, calc(100vh - 44px));
  overflow: hidden;
  border-radius: 18px;
  background: #f6f8f6;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

.utato-shinobue__close {
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 18px;
  padding: 10px 14px;
}

.utato-shinobue__frame--large {
  height: 100%;
  border-radius: inherit;
}

body.utato-shinobue-modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .utato-shinobue__frame {
    height: 750px;
  }

  .utato-shinobue__expand,
  .utato-shinobue__close {
    top: 10px;
    right: 10px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .utato-shinobue__modal {
    padding: 8px;
  }

  .utato-shinobue__dialog {
    height: calc(100vh - 16px);
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .utato-shinobue__expand {
    display: none;
  }
}

@media (max-width: 560px) {
  .utato-shinobue__expand {
    display: none;
  }
}

@container (max-width: 560px) {
  .utato-shinobue__expand {
    display: none;
  }
}
