/* 画面全体の土台（welcomeと同じ考え方） */
.screen {
  position: fixed;
  inset: 0;
  background: #fff; /* 背景色はお好みで */
}

/* 論理画面：responsive-scaler が absolute+transform を当てる前提 */
#logicView {
  position: absolute;   /* responsive-scaler が位置を制御 */
  width: 430px;         /* 論理幅 */
  height: 932px;        /* 論理高 */
  overflow: hidden;
    /* フッターを除く全体背景 */
  background: url("../img/background.png") no-repeat center top;
  background-size: cover;
  display: flex;
  flex-direction: column;
  border: 1px solid #cfd8e3;   /* welcome.css と同じ薄いグレー */
  border-radius: 28px;         /* 角丸 */
}

/* ヘッダー画像（指定の shopheader.png） */
.hero {
  position: relative;
  width: 100%;
  height: 160px; /* 背景画像の高さに合わせて調整 */
  overflow: visible;
}

/* 背景画像（header.png） */
.hero-img {
  width: 100%;
  height: 100%;
  background-image: url("/img/eventheader.png");
  background-size: cover;        /* 全面にフィット */
  background-position: center;   /* 中央基準 */
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* ロゴ（logo.png） */
.logo {
  position: absolute;
  top: 15px;                    /* 少し上に浮かせる */
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 80px;
  background-image: url("/img/logo.png");
  background-size: contain;      /* 比率を保って収まる */
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
  pointer-events: none;
}

/* ページタイトル（論理空間でpx指定OK） */
.shop-title {
  margin: 16px 16px 8px;
  font-size: 22px;
}

/* 既存の共通 user-info があるなら必要に応じて調整 */
.user-info-wrapper {
  padding: 8px 12px;
}

/* ===== ボタン ===== */
.button-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px auto 24px;
  align-items: center;
}

/* 論理空間で幅をpx指定（responsive-scalerが拡縮） */
.button {
  position: relative;
  width: 360px;           /* ← 画像の横幅感に合わせて調整 */
  height: 100px;          /* ← 画像の縦幅感に合わせて調整 */
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;

  /* 文字（中央・大きめ） */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: bold;

  /* 白文字の可読性UP（黒フチ） */
  text-shadow:
    -1px -1px 1px #000,
     1px -1px 1px #000,
    -1px  1px 1px #000,
     1px  1px 1px #000;

  transition: transform 0.1s, filter 0.3s;
}

/* 各ボタンに背景画像の割当 */
#sityubo-btn1 {
  background-image: url("/static/img/Pshop.png");
}
#sityubo-btn2 {
  background-image: url("/static/img/Pshop.png");
}

/* hover効果（PC向け） */
.shop-button:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.button.disabled {
  background: linear-gradient(135deg, #bdc3c7, #95a5a6);
  cursor: default;
  pointer-events: none; /* ← クリック無効 */
  color: #eee;
}

/*モーダル*/
.warning-button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #f77e4e;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
}

.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 20px 30px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
  text-align: left;
}

.modal-content h3 {
  text-align: center;             /* 中央配置 */
  border-bottom: 2px solid #2a7ae4;  /* 下線（色や太さは調整可） */
  padding-bottom: 8px;            /* 下線との間隔 */
  margin-bottom: 16px;            /* 下の要素との間隔 */
}

.close-button {
  float: right;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
}

.modal-footer {
  text-align: center;
  margin-top: 20px;
}

.ok-button{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 34px;         /* 横長のpill感 */
  min-height: 36px;
  line-height: 1;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;

  color: #fff;                /* 白文字 */
  background-color: #6192B5;  /* 画像の青に近い色 */
  border: 1.5px solid #C7D1DC;/* 外枠の淡い色 */
  border-radius: 999px;       /* pill 形状 */

  /* ほんのり外側の影＋上面ハイライト */
  box-shadow:
    0 4px 10px rgba(0,0,0,.08);
  transition: transform .08s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease;
}

.ok-button:hover {
  background-color: #1c5dc0;
}

html, body { height: 100%; overflow: hidden; }