/* sim/sim.css - モーダルの見た目（埋め込み表示用） */
:root{
  --sim-overlay: rgba(0,0,0,.55);
  --sim-panel-bg: #ffffff;
  --sim-border: rgba(0,0,0,.18);
}

/* 既存ページ側に影響を出しにくいように prefix しています */
.simModal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.simModal.is-open{ display:block; }

.simModal__overlay{
  position:absolute;
  inset:0;
  background: var(--sim-overlay);
}

.simModal__panel{
  position: relative;
  width: min(980px, calc(100vw - 24px));
  height: min(86vh, 860px);
  margin: 10vh auto 0;
  background: var(--sim-panel-bg);
  border: 1px solid var(--sim-border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  overflow: hidden;
}

/* 右上の閉じるボタン */
.simModal__close{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--sim-border);
  background: #fff;
  cursor: pointer;
  z-index: 2;

  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 22px;
  line-height: 1;
}
.simModal__close:active{ transform: translateY(1px); }

/* 中身（iframe） */
.simModal__frame{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.sim-btn{
  display: inline-block;;
  position: relative;
  background-color: #00b1ad;
  margin: 10px 0;
  padding: 10px;
  font-weight: bold;
  border-radius: 30px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
}
