@charset "UTF-8";

/* モーダル背景と中央配置 */
.modal-container,
.modal-container2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 9999;
}

/* モーダルのアクティブ時（表示） */
.modal-container.active,
.modal-container2.active {
  opacity: 1;
  visibility: visible;
}

/* モーダル本体 */
.modal-body,
.modal-body2 {
  background: #fff;
  border-radius: 8px;
  max-width: 480px;
  width: 100%;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-height: 90vh;
}

/* モーダル閉じるボタン */
.modal-close,
.modal-close2 {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  color: #fff;
  background: #5e5e5e;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* モーダル内部コンテンツ */
.modal-content,
.modal-content2 {
  background: #fff;
  text-align: center;
  padding: 1rem;
}

/* ボタン群（LINE / メール） */
.modal-content .auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.modal-content .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  /*color: white;*/
}

.modal-content .btn img {
  width: 1.5rem;
  margin-right: 0.5rem;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .modal-body,.modal-body2 {
    max-width: 90%;
    padding: 1rem;
  }

  .modal-close {
    top: -12px;
    right: -12px;
    font-size: 1.2rem;
  }
}
