/* お散歩ビンゴ - ランディングページ（モバイルファースト・デザイナー調整版） */

:root {
  --primary: #7eb89a;
  --primary-light: #a8d5ba;
  --primary-dark: #5a9b7d;
  --bg: #f8faf9;
  --card-bg: #ffffff;
  --text: #2d3436;
  --text-light: #636e72;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: 52px; /* 固定ヘッダー分 */
}

/* ========== グローバルヘッダー（固定・プラットフォーム⇔プロダクト行き来） ========== */
.global-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 52px;
  background: #f2f4f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.global-header a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.global-header a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--primary-dark);
}

.global-header .global-header-back {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.global-header .global-header-product {
  color: var(--primary-dark);
}

.global-header .global-header-product img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

.landing-container {
  max-width: 960px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== ヒーロー（画像＋下にライト系カード） ========== */
.hero {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--bg) 0%, #e8f2ec 55%, #d8ece2 100%);
  color: var(--text);
  text-align: center;
  overflow: visible;
  position: relative;
}

.hero-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: none;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #dceee3 0%, #e8eeea 55%, #d4e8dd 100%);
  border-radius: 0 0 clamp(18px, 4vw, 28px) clamp(18px, 4vw, 28px);
  box-shadow: 0 10px 32px rgba(90, 120, 100, 0.08);
}

/* ボタン帯へ自然にフェード（イラストと一体感） */
.hero-image-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(
    180deg,
    rgba(232, 238, 234, 0) 0%,
    rgba(200, 225, 210, 0.25) 40%,
    rgba(175, 215, 195, 0.5) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  position: relative;
  z-index: 0;
}

/* CTA帯：角丸で画像とつなぐ（水平の「張り付き」感を弱める） */
.hero-cta-strip {
  margin: clamp(-36px, -5vw, -20px) clamp(14px, 4vw, 28px) 0;
  padding: clamp(18px, 3.5vw, 26px) clamp(16px, 4vw, 28px) clamp(6px, 2vw, 10px);
  position: relative;
  z-index: 2;
  background: linear-gradient(
    165deg,
    rgba(238, 248, 242, 0.92) 0%,
    rgba(218, 236, 226, 0.88) 45%,
    rgba(205, 230, 216, 0.95) 100%
  );
  border-radius: clamp(18px, 4vw, 26px);
  border: 1px solid rgba(90, 155, 125, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 12px 40px rgba(60, 100, 80, 0.1);
}

.hero-content {
  align-self: center;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content .btn-start {
  padding: 16px 32px;
  min-height: 50px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(165deg, #ffffff 0%, #eaf5ef 55%, #e2f0ea 100%);
  color: #3d7a62;
  font-weight: 800;
  box-shadow:
    0 0 0 1px rgba(90, 155, 125, 0.18),
    0 3px 0 rgba(90, 155, 125, 0.22),
    0 10px 28px rgba(45, 80, 65, 0.14);
  animation: none;
}

.hero-content .btn-start::before {
  display: none;
}

.hero-content .btn-start:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(90, 155, 125, 0.25),
    0 5px 0 rgba(90, 155, 125, 0.2),
    0 16px 36px rgba(45, 80, 65, 0.18);
}

.hero-content .btn-start:active {
  transform: translateY(0);
  box-shadow:
    0 0 0 1px rgba(90, 155, 125, 0.2),
    0 2px 0 rgba(90, 155, 125, 0.18),
    0 6px 16px rgba(45, 52, 54, 0.1);
}

/* ========== CTAボタン（押しやすい・目立つ） ========== */
.btn-start {
  display: inline-block;
  padding: 18px 36px;
  min-height: 52px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f2 100%);
  color: var(--primary-dark);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 14px;
  border: 2px solid rgba(90, 155, 125, 0.35);
  box-shadow:
    0 3px 0 #b8d4c4,
    0 6px 16px rgba(45, 52, 54, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  animation: btn-float 2.5s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* キラッと光る演出 */
.btn-start::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.7),
    transparent
  );
  animation: btn-shine 3.5s ease-in-out infinite;
  pointer-events: none;
}

.btn-start:hover {
  animation: none;
  transform: translateY(-4px);
  box-shadow:
    0 6px 0 #c5d9cd,
    0 10px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.btn-start:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #c5d9cd,
    0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-start:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
}

@keyframes btn-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes btn-shine {
  0% {
    left: -100%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  40% {
    left: 150%;
    opacity: 1;
  }
  41% {
    opacity: 0;
  }
  100% {
    left: -100%;
    opacity: 0;
  }
}

/* ========== メインコンテンツ（1ブロック） ========== */
.main-content {
  flex: 1;
  padding: clamp(28px, 5vw, 44px) clamp(18px, 5vw, 40px) 44px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 28px);
  align-items: stretch;
  margin-bottom: 28px;
}

.content-block {
  background: var(--card-bg);
  padding: clamp(20px, 3.5vw, 26px);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
}

.block-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
  letter-spacing: 0.02em;
}

/* 特徴リスト */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 22px);
  flex: 1;
}
.feature-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: clamp(14px, 2vw, 18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.feature-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.feature-item strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--text);
}
.feature-item span {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-light);
}

/* 遊び方（カード高さに合わせて縦バランス） */
.howto-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 20px);
  flex: 1;
  padding: 6px 0 4px;
}
.howto-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 44px;
  padding: 8px 0;
}
.step-num {
  width: 32px;
  height: 32px;
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(90, 155, 125, 0.35);
}
.howto-item span:last-child {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  padding-top: 3px;
}

/* おすすめブロック */
.recommend-block {
  background: var(--card-bg);
  padding: clamp(20px, 3.5vw, 26px);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 28px;
}

.recommend-block .block-title {
  margin-bottom: 16px;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.recommend-item {
  padding: 10px 12px;
  min-height: 40px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CTA下 */
.cta-bottom {
  text-align: center;
  position: relative;
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.2rem;
  animation-delay: 0.5s;
}

/* ========== 広告枠 ========== */
.ad-slot {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.ad-slot-infeed {
  margin-bottom: 20px;
}

.ad-slot-footer {
  padding: 12px 24px;
  background: var(--bg);
}

.ad-slot-inner {
  width: 100%;
  max-width: 728px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ad-slot-label {
  font-size: 0.65rem;
  color: #bbb;
  letter-spacing: 0.05em;
  line-height: 1;
}

.ad-placeholder {
  width: 100%;
  max-width: 468px;
  height: 100px;
  background: #f0f2f1;
  border: 1px dashed #ddd;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ad-placeholder-banner {
  max-width: 728px;
  height: 90px;
}

.ad-placeholder-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ccc;
  letter-spacing: 0.1em;
}

.ad-placeholder-sub {
  font-size: 0.65rem;
  color: #ccc;
}

/* フッター */
.footer {
  padding: 20px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--card-bg);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer .dot {
  opacity: 0.5;
}

/* ========== レスポンシブ（モバイルファースト・余白ゼロ設計） ========== */
@media (max-width: 600px) {
  .hero {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .hero-image-wrap {
    max-height: none;
    aspect-ratio: 16 / 9;
    border-radius: 0 0 16px 16px;
  }

  .hero-cta-strip {
    margin: -24px 12px 0;
    padding: 16px 14px 8px;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-content .btn-start {
    width: 100%;
    max-width: 340px;
    padding: 14px 22px;
    min-height: 48px;
    font-size: 1.05rem;
    border-radius: 12px;
  }

  .hero-content .btn-start:hover {
    transform: translateY(-1px);
  }

  /* メインコンテンツ: 詰めた余白 */
  .content-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }

  .content-block {
    padding: 18px;
  }

  .howto-list {
    padding: 2px 0 0;
  }

  .recommend-block {
    padding: 18px;
    margin-bottom: 20px;
  }

  .recommend-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .main-content {
    padding: 22px 16px 32px;
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  }

  .cta-bottom {
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  }

  .ad-slot-infeed {
    margin-bottom: 14px;
  }

  .ad-slot-footer {
    padding: 10px 16px;
  }

  .ad-placeholder {
    max-width: 100%;
    height: 80px;
  }

  .ad-placeholder-banner {
    height: 60px;
  }
}

/* 超小型スマホ（ノッチ対策） */
@media (max-width: 380px) {
  .hero-cta-strip {
    margin: -20px 10px 0;
    padding: 14px 12px 6px;
  }

  .hero-content .btn-start {
    padding: 13px 18px;
    font-size: 1rem;
  }

  .main-content {
    padding: 18px 12px 28px;
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  }
}
