/* css/cd-hcp-gate.css */
html.cd-hcp-gate-open,
body.cd-hcp-gate-open {
  overflow: hidden;
}

/* モーダル表示中は裏側を選択不可にする */
html.cd-hcp-gate-open,
body.cd-hcp-gate-open {
  user-select: none;
}

/* モーダル内は選択可能 */
.cd-hcp-gate-overlay,
.cd-hcp-gate-overlay * {
  user-select: text;
}

/* 背景オーバーレイ */
.cd-hcp-gate-overlay {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 と同等 */
  display: none; /* JSで display:flex に切り替え */
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  background: rgba(10, 10, 10, 0.9);
  z-index: 9999;
}

/* ダイアログ本体 */
.cd-hcp-gate-dialog {
  max-width: 700px;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 24px 24px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 18px;
  line-height: 1.8;
}

/* 説明文 */
.cd-hcp-gate-message {
  margin: 0 0 20px;
}

/* 質問文 */
.cd-hcp-gate-question {
  margin: 0 0 12px;
  font-size: 1.5em;
  font-weight: 700;
  text-align: center;
}

/* ボタングループ */
.cd-hcp-gate-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  width: 100%;
}

/* ボタン共通 */
.cd-hcp-gate-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 1.2em;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
  flex: 1 1 0;
}
.cd-hcp-gate-btn .note {
  font-size:80%;
}

/* メインボタン（医療関係者） */
.cd-hcp-gate-btn-primary {
  background-color: #0070c9;
  border-color: #0070c9;
  color: #fff;
}

.cd-hcp-gate-btn-primary:hover {
  background-color: #005fa6;
  border-color: #005fa6;
}

/* セカンダリーボタン（患者・その他） */
.cd-hcp-gate-btn-secondary {
  background-color: #f5f5f5;
  border-color: #cccccc;
  color: #333;
}

.cd-hcp-gate-btn-secondary:hover {
  background-color: #e5e5e5;
}

/* スマホでの余白調整 */
@media (max-width: 750px) {
  .cd-hcp-gate-dialog {
    padding: 20px 16px 16px;
  }

  .cd-hcp-gate-message {
    font-size: 16px;
  }

  .cd-hcp-gate-buttons {
    justify-content: center;
  }

  .cd-hcp-gate-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}