/* ニュー速＋ アプリDL促進モーダル スタイル
   既存サイトと衝突しないよう nuusoku-app-modal-* プレフィックス */

/* ====== オーバーレイ ====== */
.nuusoku-app-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  animation: nuusoku-app-modal-fadein 0.2s ease-out;
}
@keyframes nuusoku-app-modal-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ====== モーダルボックス ====== */
.nuusoku-app-modal-box {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  border-radius: 16px;
  background: transparent;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: nuusoku-app-modal-popin 0.25s ease-out;
}
/* PC用ワイド版 */
.nuusoku-app-modal-box--wide {
  max-width: 980px;
}
@keyframes nuusoku-app-modal-popin {
  from { transform: translateY(24px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* ====== 閉じるボタン ====== */
.nuusoku-app-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 1px 6px rgba(0,0,0,0.2);
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nuusoku-app-modal-close:hover { background: #fff; }

/* ====== 左パネル（PCのみ） ====== */
.nuusoku-app-modal-left {
  flex: 0 0 42%;
  background: #1268d4;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  line-height: 0;
}
.nuusoku-app-modal-left img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
  vertical-align: bottom;
}

/* ====== 右パネル ====== */
.nuusoku-app-modal-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 44px 32px 28px;
  overflow-y: auto;
  border-radius: 0 16px 16px 0;
  box-sizing: border-box;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
               "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
/* 左パネルなし（モバイル）のとき右パネルが全体 */
.nuusoku-app-modal-box:not(.nuusoku-app-modal-box--wide) .nuusoku-app-modal-right {
  border-radius: 16px;
}

/* ====== タイトル ====== */
.nuusoku-app-modal-title {
  font-size: 26px;
  font-weight: bold;
  color: #1a6fcf;
  margin: 0 0 12px;
  line-height: 1.3;
}

/* ====== 本文 ====== */
.nuusoku-app-modal-body {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  margin: 0 0 20px;
  white-space: pre-line;
}

/* ====== ストアボタン ====== */
.nuusoku-app-modal-btns {
  display: flex;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 0 16px;
}
.nuusoku-app-modal-store {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}
.nuusoku-app-modal-store img {
  display: block;
  height: 54px;
  width: auto;
}

/* ====== QRコード ====== */
.nuusoku-app-modal-qr {
  display: flex;
  gap: 56px;
  justify-content: center;
  width: 100%;
  margin: 0 0 16px;
}
.nuusoku-app-modal-qr-item {
  flex: 1;
  max-width: 166px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nuusoku-app-modal-qr-item img {
  display: block;
  width: 100%;
  max-width: 130px;
  height: auto;
}
.nuusoku-app-modal-qr-label {
  margin-top: 6px;
  font-size: 12px;
  color: #555;
}

/* ====== フィーチャーバー ====== */
.nuusoku-app-modal-features {
  width: 100%;
  box-sizing: border-box;
  background: #e8f0fb;
  color: #1a6fcf;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 16px;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

/* ====== スヌーズ ====== */
.nuusoku-app-modal-snooze {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  user-select: none;
}
.nuusoku-app-modal-snooze input { margin: 0; }

/* ====== SP用モーダル（縦レイアウト） ====== */
.nuusoku-app-modal-box--sp {
  flex-direction: column;
  max-width: 380px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.nuusoku-app-modal-sp-hero {
  position: relative;
  background: linear-gradient(160deg, #1a8df0 0%, #0c4cb3 100%);
  padding: 28px 24px 24px;
  color: #fff;
  text-align: center;
}
.nuusoku-app-modal-sp-hero-tag {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  margin-bottom: 10px;
  opacity: 1;
}
.nuusoku-app-modal-sp-hero-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  opacity: 0.9;
}
.nuusoku-app-modal-sp-content {
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
               "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
.nuusoku-app-modal-sp-feats {
  width: 100%;
  margin-bottom: 20px;
}
.nuusoku-app-modal-sp-feat {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.nuusoku-app-modal-sp-feat:last-child { margin-bottom: 0; }
.nuusoku-app-modal-sp-feat-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
.nuusoku-app-modal-sp-feat-text { flex: 1; min-width: 0; }
.nuusoku-app-modal-sp-feat-title {
  font-size: 14px;
  font-weight: bold;
  color: #1a6fcf;
  line-height: 1.35;
  margin-bottom: 3px;
}
.nuusoku-app-modal-sp-feat-desc {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
}
.nuusoku-app-modal-sp-btns {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.nuusoku-app-modal-sp-store {
  display: inline-block;
  align-self: center;
  text-decoration: none;
  line-height: 0;
}
.nuusoku-app-modal-sp-store img {
  display: block;
  width: auto;
  height: 50px;
  max-width: 100%;
}

/* ====== レスポンシブ（幅600px以下） ====== */
@media (max-width: 600px) {
  .nuusoku-app-modal-overlay { padding: 18px; }
  .nuusoku-app-modal-box--wide { max-width: 100%; }
  .nuusoku-app-modal-left { display: none; }
  .nuusoku-app-modal-box--wide .nuusoku-app-modal-right {
    border-radius: 16px;
    padding: 36px 20px 24px;
  }
  .nuusoku-app-modal-title { font-size: 20px; }
  .nuusoku-app-modal-store img { height: 48px; }
  .nuusoku-app-modal-qr-item { max-width: 140px; }
}
