/* ========= ベース ========= */
:root {
  --phone-w: 375px;
  --footer-h: 72px;
  --radius: 15px;
  --gap: 16px;
  --text: #111;
  --border: #eee;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: system-ui, -apple-system, "Noto Sans JP", Roboto, sans-serif;
  color: var(--text);
  background: url("img/body_img.jpg") center center / cover no-repeat fixed;
}

p{
  margin: 0;
}

@media (min-width: 600px) {
  body {
    overflow: hidden;
  }
}

/* ========= ステージ（土台） ========= */
.stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--gap);
}

/* ========= スマホ画面本体 ========= */
.phone {
  position: relative;
  width: var(--phone-w);
  height: 100%;
  max-height: calc(100svh - var(--gap) * 2);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

/* 実機スマホでは全画面化（見た目をスマホらしく） */
@media (max-width: 599.98px) {
  .stage {
    padding: 0;
  }

  .phone {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }

}

/* ========= スクロール領域 ========= */
.scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  outline: none;
}

.scroll::after{
  content: "";
  display: block;
  height: calc(var(--footer-h) + env(safe-area-inset-bottom));
}

/* ========= 安全領域（ノッチ等） ========= */
.safe {
  padding-top: max(12px, env(safe-area-inset-top));
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

/* ========= コンテンツ ========= */
.card_beige {
  background-color: #F4F5F1;
}

.card_blue {
  padding: 40px 20px;
  color: #fff;
  text-align: center;
  background-color: #424952;
}

.card_blue img {
  width: 100%;
  max-width: 100px;
  margin-bottom: 20px;
}

.btn_wrapper {
  padding: 0 20px 60px;
  overflow: hidden;
}

.btn_wrapper a {
  display: block;
  width: 100%;
}

.btn_wrapper a img {
  width: 100%;
  height: auto;
  display: block;
}

.shop-info {
  font-size: 12px;
  margin-bottom: 8px;
  color: #fff;
  /* text-decoration: none; */
}

.copyright{
  font-size: 10px;
  opacity: 0.8;
  margin-top: 32px;
}

@media (min-width: 600px) {
  .card>img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
  }
}

@media (max-width: 599.98px) {
  .card {
    min-height: auto;
  }

  .card>img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }
}

/* ========= ヘッダー/フッター ========= */
.app-header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  z-index: 2;
  border-bottom: 1px solid var(--border);
}

.app-footer{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.app-footer a{
  display: block;
  width: 100%;
  max-width: 100%;
}

.app-footer a img{
  display: block;
  width: 100%;
  height: auto;
}

.app-footer.footer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  overflow: visible;
  background: rgba(255, 255, 255, 0.8);
}

.app-footer.footer-cta a {
  display: block;
  width: 100%;
  max-width: 100%;
}

.app-footer.footer-cta a img {
  display: block;
  width: 100%;
  height: auto;
}