﻿@charset "UTF-8";

/*-----------------------------------------------
  モーダル表示用: オーバーレイ
-----------------------------------------------*/
#simple-modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: none;
  transition: opacity 0.2s;
}

#simple-modal-overlay.visible {
  display: block;
  opacity: 1;
}

/*-----------------------------------------------
  モーダル表示用: 本体
-----------------------------------------------*/
#simple-modal-content {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 20px #222;
  z-index: 10001;
  max-width: 95vw;
  max-height: 90vh;
  overflow: auto;
  display: none;
  opacity: 0;
  transition: opacity 0.2s;
}

#simple-modal-content.visible {
  display: block;
  opacity: 1;
}

#simple-modal-content * {
  box-sizing: border-box;
}

#simple-modal-inner {
  padding: 10px;
}

/*-----------------------------------------------
  モーダルのクローズボタン
-----------------------------------------------*/
#simple-modal-close {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  font-size: 2rem;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}
