.gs-modal[hidden] {
  display: none !important;
}

/* PC非表示 */
@media (min-width: 768px) {
  .gs-modal {
    display: none !important;
  }
}

.gs-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* 背景30% */
.gs-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

/* 本体 */
.gs-modal__dialog {
  position: relative;
  z-index: 1;
  width: 80vw;
  max-width: 420px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  -webkit-overflow-scrolling: touch;
}

/* ヘッダー */
.gs-modal__header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: 8px;
  background: #fff;
  z-index: 2;
}

/* 閉じる */
.gs-modal__close {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  height: 36px;
  padding: 0 10px;

  border: none;
  border-radius: 999px;
  background: #f2f2f2;

  font-size: 14px;
  cursor: pointer;
}

.gs-modal__close-icon {
  font-size: 18px;
  line-height: 1;
}

.gs-modal__close-text {
  font-size: 12px;
} 




/* 画像 */
.gs-modal__link {
  display: block;
}

.gs-modal__img {
  width: 100%;
  height: auto;
  display: block;
}

/* フッター */
.gs-modal__footer {
  padding: 14px 16px 16px;
}

.gs-modal__checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  color: #333;
}

.gs-modal__checkbox input {
  width: 18px;
  height: 18px;
}

/* 374px以下の端末 */
@media (max-width: 374px) {
  .gs-modal__dialog {
    width: 78vw;
  }

  .gs-modal__checkbox {
    font-size: 13px;
  }
} 
