/* =====================================================
   PWAインストールバナー
   =====================================================
   AndroidのChromeでホーム画面へのインストールを
   促すバナーのスタイルです。
   ===================================================== */

/* インストールバナー（画面上部に固定） */
#pwa-install-banner {
  display: none;                     /* JSで表示制御 */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  border-bottom: 3px solid #F5A623;
  box-shadow: 0 2px 12px rgba(245, 166, 35, 0.25);
  padding: 10px 14px;
  align-items: center;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

#pwa-install-banner.show {
  display: flex;
}

/* アイコン */
.pwa-banner__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
}

/* テキスト部分 */
.pwa-banner__text {
  flex: 1;
  min-width: 0;
}

.pwa-banner__title {
  font-size: 16px;
  font-weight: 700;
  color: #3D2000;
  line-height: 1.3;
  margin: 0 0 2px;
}

.pwa-banner__desc {
  font-size: 16px;
  color: #888888;
  margin: 0;
  line-height: 1.4;
}

/* インストールボタン */
.pwa-banner__install-btn {
  flex-shrink: 0;
  background: #F5A623;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(245, 166, 35, 0.4);
  transition: opacity 0.15s, transform 0.15s;
}

.pwa-banner__install-btn:active {
  opacity: 0.8;
  transform: scale(0.97);
}

/* 閉じるボタン */
.pwa-banner__close-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #bbbbbb;
  font-size: 20px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
}

/* バナー表示中はヘッダーを下げる */
/*body.pwa-banner-visible .site-header {
  top: 67px;   
}*//* バナーの高さ分 */
/* バナー表示中は全体を下げる */
body.pwa-banner-visible {
  padding-top: 67px; /* バナーの高さ分 */
}
/* -------------------------------------------------------
   通知許可ダイアログ
   お気に入り登録時（standaloneモード）に表示
------------------------------------------------------- */

/* オーバーレイ背景 */
#notif-permission-dialog {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#notif-permission-dialog.show {
  display: flex;
}

/* ダイアログ本体 */
.notif-dialog__box {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px 20px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* アイコン */
.notif-dialog__icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 12px;
}

/* タイトル */
.notif-dialog__title {
  font-size: 18px;
  font-weight: 700;
  color: #3D2000;
  margin: 0 0 10px;
  line-height: 1.4;
}

/* 説明文 */
.notif-dialog__body {
  font-size: 16px;
  color: #666666;
  line-height: 1.7;
  margin: 0 0 20px;
}

/* ボタン群 */
.notif-dialog__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 「許可する」ボタン */
.notif-dialog__allow-btn {
  background: #F5A623;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 20px 12px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(245, 166, 35, 0.4);
  transition: opacity 0.15s, transform 0.15s;
}

.notif-dialog__allow-btn:active {
  opacity: 0.8;
  transform: scale(0.98);
}

/* 「後で」ボタン */
.notif-dialog__later-btn {
  background: none;
  border: 1.5px solid #dddddd;
  border-radius: 30px;
  padding: 20px 10px;
  font-size: 18px;
  color: #888888;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}

.notif-dialog__later-btn:active {
  background: #f5f5f5;
}

/* ---- インストールカード（フッター上） ---- */
.install-card-wrap {
  max-width: 480px;
  margin: 20px auto 0;
  padding: 0 16px;
}

.install-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  padding: 12px 14px;
  position: relative;
}

/* iOS用カードは縦並び */
.install-card--ios {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

/* iOSカード上部（アイコン+テキスト+閉じるボタン） */
.install-card__ios-top {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.install-card__icon-wrap {
  flex-shrink: 0;
}

.install-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: block;
}

.install-card__body {
  flex: 1;
  min-width: 0;
}

.install-card__title {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  margin: 0 0 2px;
  line-height: 1.3;
}

.install-card__desc {
  font-size: 16px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.install-card__add-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  padding: 12px 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.install-card__add-btn:hover,
.install-card__add-btn:active {
  background: #1558b0;
}

.install-card__close-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 4px;
  margin-left: 2px;
  -webkit-tap-highlight-color: transparent;
}

.install-card__close-btn:hover {
  color: #555;
}

/* iOS用手順リスト */
.install-card__steps {
  list-style: none;
  margin: 12px 0 0;
  padding: 10px 12px;
  counter-reset: step-counter;
  background: #f7f9ff;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
}

.install-card__steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  color: #333;
  padding: 5px 0;
  counter-increment: step-counter;
  line-height: 1.5;
}

.install-card__steps li::before {
  content: counter(step-counter);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #e8f0fe;
  color: #1a73e8;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  margin-top: 1px;
}

/* インストールカードはブラウザ上で常時表示（standaloneでも表示） */
