/* 公式アプリのスマートバナー（SPのみ・画面下） */
.app-banner {
  display: none;
}
@media screen and (max-width: 767px) {
  .app-banner.is-show {
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 110;
    max-width: 400px;
    margin: 0 auto;
    transition: bottom 0.3s;
  }
  .app-banner__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 3px solid #fff;
    border-radius: 14px;
    background: linear-gradient(rgba(91, 115, 72, 0.82), rgba(91, 115, 72, 0.82)), url(../images/app-banner-bg.jpg) center 60% / cover #5b7348;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    color: #fff;
    text-decoration: none;
  }
  .app-banner__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff;
  }
  .app-banner__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.3;
    letter-spacing: 0.05em;
  }
  .app-banner__title {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
  }
  .app-banner__sub {
    font-size: 12px;
  }
  .app-banner__btn {
    flex-shrink: 0;
    margin-left: auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff;
    color: #5b7348;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }
  /* 閉じるボタンはバナーの右上に、白い丸で重ねる */
  .app-banner__close {
    position: absolute;
    top: -10px;
    right: -8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    color: #5b7348;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    cursor: pointer;
  }
  /* 押しやすいように、押せる範囲を見た目より広げる */
  .app-banner__close::before {
    content: "";
    position: absolute;
    inset: -8px;
  }
}
/* 幅の狭い端末では、ボタンを出さずに文字を優先する */
@media screen and (max-width: 359px) {
  .app-banner__btn {
    display: none;
  }
  .app-banner__title {
    font-size: 15px;
  }
}
