/* ====== ベース ====== */
*,
*::before,
*::after { box-sizing: border-box; }

/*html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
}*/

html.modal-open { overflow: hidden; }

/* ====== デモ用 ====== */
.demo-header, .demo-main {
  max-width: 960px;
  margin: 24px auto;
  padding: 0 16px;
}
.demo-header h1 { margin: 0 0 8px; font-size: 1.5rem; }

/* ====== モーダル ====== */
.bc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.bc-modal[aria-hidden="true"] { visibility: hidden; }
.bc-modal.is-open { pointer-events: auto; visibility: visible; }

/* 背景 */
.bc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .2s ease;
}
.bc-modal.is-open .bc-modal__backdrop { opacity: 1; }

/* 本体 */
.bc-modal__dialog {
  position: relative;
  width: 640px;
  max-width: calc(100vw - 32px);
  max-height: 480px;
  max-height: calc(100dvh - 32px);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.08);
  transform: translateY(12px);
  opacity: 0;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
  display: flex;
  flex-direction: column;
  outline: none;
}
.bc-modal.is-open .bc-modal__dialog {
  transform: translateY(0);
  opacity: 1;
}

.bc-modal__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  height: 100%;
}

#modalBody{
	margin: 1em 0;
	display: flex;
}

#modalBody > div:nth-child(1){
	width: 35%;
}

#modalBody > div:nth-child(2){
	width: 65%;
	padding: 0 1em;
}

#modalBody img{
	width: 100%;
	border: 1px solid #444444;
	margin: 0;
}

.bc-modal__title { font-size: 1.25rem; margin: 0; line-height: 1.4; }
.bc-modal__body { margin: 0; color: #333; overflow: auto; }

/* しばらく表示しない */
.bc-modal__mute {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: #444;
  user-select: none;
}
.bc-modal__mute-input { width: 18px; height: 18px; }
.bc-modal__mute-label { cursor: pointer; }

/* アクション群 */
.bc-modal__actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bc-modal__btn {
  appearance: none;
  border: 1px solid #ccc;
  background: #f7f7f7;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  user-select: none;
}
.bc-modal__btn:hover {
	opacity: 0.7;
	transition: 0.5s;
}
.bc-modal__btn:active { transform: translateY(1px); }

/* 強調CTA */
.bc-modal__cta {
  background: #0b5cff;
  border-color: #0b5cff;
  color: #fff;
}

.bc-modal__cta:hover {
	opacity: 0.7;
	transition: 0.5s;
}

/* 閉じる */
.bc-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #666;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .06s ease;
}
.bc-modal__close:hover { background: rgba(0,0,0,.05); color: #222; }
.bc-modal__close:active { transform: translateY(1px); }

/* SP */
@media (max-width: 640px) {
  .bc-modal__dialog {
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 24px);
    border-radius: 14px;
  }
  .bc-modal__actions { grid-template-columns: 1fr; }
}
