@charset "UTF-8";

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
}

.popup-wrapper {
  width: 90%;
  height: 90%;
  max-width: 650px;
  max-height: 650px;
  margin: 5% auto 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
}

.popup-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* ▼ 各言語バナーの背景画像指定（あぶりや用） ▼ */

.popup-overlay.popup-ja .popup-wrapper::before {
  background-image: url('https://aburiya.1dining.co.jp/wp-content/themes/1dining/assets/images/popup/251001/popup_ja.webp');
}

.popup-overlay.popup-en .popup-wrapper::before {
  background-image: url('https://aburiya.1dining.co.jp/wp-content/themes/1dining/assets/images/popup/251001/popup_en.webp');
}

.popup-overlay.popup-zh .popup-wrapper::before {
  background-image: url('https://aburiya.1dining.co.jp/wp-content/themes/1dining/assets/images/popup/251001/popup_zh-CN.webp');
}

.popup-overlay.popup-ko .popup-wrapper::before {
  background-image: url('https://aburiya.1dining.co.jp/wp-content/themes/1dining/assets/images/popup/251001/popup_ko.webp');
}

/* 閉じるボタン */

.popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: #FFF;
  color: #000;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 50%;
}

/* ▼ レスポンシブ（スマホ）対応 ▼ */

@media screen and (max-width: 768px) {
  .popup-wrapper {
    width: 90%;
    height: 90%;
    margin: 100px auto 0;
    max-height: 390px;
  }

  /* SPも画像共通なので ::before は共通対応のままでOK */
}