@font-face {
  font-family: 'icomoon';
  src:  url('fonts/icomoon.eot?652s49');
  src:  url('fonts/icomoon.eot?652s49#iefix') format('embedded-opentype'),
    url('fonts/icomoon.ttf?652s49') format('truetype'),
    url('fonts/icomoon.woff?652s49') format('woff'),
    url('fonts/icomoon.svg?652s49#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="icon-"], [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-instagram:before {
  content: "\e901";
}
.icon-blank:before {
  content: "\e900";
}

/* ==== WORKS モーダル ==== */

.works-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;              /* 初期は非表示 */
  align-items: center;
  justify-content: center;
}

.works-modal.is-open {
  display: flex;
}

.works-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.works-modal__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.works-modal__img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.works-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* モーダル表示中はスクロールさせない */
html.works-modal-open,
html.works-modal-open body {
  overflow: hidden;
}
