/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  background: #4db8f0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Container ===== */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== Main Section ===== */
.main-section {
  position: relative;
  background: url('/assets/campaign/2026/10th-anniversary/img/bg_main.png') no-repeat center top / 100% auto;
  z-index: 1;
  padding: 0 !important;
}

/*
 * ヒーローエリア（bg_main.png の上部デザイン部分の高さ分）
 * bg_main.png の実際の縦横比に合わせて調整してください
 */
.main-hero-space {
  padding-top: 42%;
}


.main-section .container {
  max-width: 960px;
}

.main-section .banner-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px 0 80px;
}

/* ===== Banner Card ===== */
.main-section .banner-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 18px;
}

.main-section .banner-card-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 3px solid #5ab8ea;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  padding: 6px;
}

.main-section .banner-card-label {
  background: #b2ddf7;
  color: #1a4e7a !important;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  padding: 7px 6px;
  line-height: 1.4;
  border-radius: 8px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-section .banner-card-img {
  flex: 1;
  overflow: hidden;
  border-radius: 6px;
}

.main-section .banner-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.main-section .banner-card-arrow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  background: #1a4e8a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

/* ===== Campaign Sections ===== */
/* 重なり量はここで一括管理 */
.campaign-section {
  position: relative;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  margin-top: -75px;
  /* スクロール時にアンカーが隠れないように補正 */
  scroll-margin-top: 75px;
}

/* padding-top/bottom は全セクション共通 */
.section-sns,
.section-nogizaka,
.section-treasure,
.section-points,
.section-huawei,
.section-podcast {
  padding: 90px 0 90px !important;
}

/* 下のセクションほど z-index が高くなり、上のセクションに被さる */
.section-sns      { background-image: url('/assets/campaign/2026/10th-anniversary/img/bg_cloud01.png'); z-index: 2; }
.section-nogizaka { background-image: url('/assets/campaign/2026/10th-anniversary/img/bg_cloud02.png'); z-index: 3; }
.section-treasure { background-image: url('/assets/campaign/2026/10th-anniversary/img/bg_cloud03.png'); z-index: 4; }
.section-points   { background-image: url('/assets/campaign/2026/10th-anniversary/img/bg_cloud01.png'); z-index: 5; }
.section-huawei   { background-image: url('/assets/campaign/2026/10th-anniversary/img/bg_cloud02.png'); z-index: 6; }
.section-podcast  { background-image: url('/assets/campaign/2026/10th-anniversary/img/bg_cloud03.png'); z-index: 7; }

/* ===== Balloon Decorations ===== */
/* 共通: 風船の基本形状とアニメーション */
.campaign-section::before,
.campaign-section::after {
  content: '';
  position: absolute;
  top: 20%;
  width: 52px;
  height: 64px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  pointer-events: none;
  z-index: 10;
  animation: float-balloon 5s ease-in-out infinite;
}

.campaign-section::before { left: 5%; }
.campaign-section::after  { right: 5%; animation-delay: 0.9s; }

@keyframes float-balloon {
  0%, 100% { transform: translateY(0)    rotate(-5deg); }
  50%       { transform: translateY(-20px) rotate(5deg); }
}

/* セクションごとに色を変える（box-shadow で複数個表示） */
.section-sns::before {
  background: #ff6b6b;
  box-shadow: 72px 110px 0 4px #ffd43b, -10px 200px 0 -2px #74c0fc;
}
.section-sns::after {
  background: #51cf66;
  box-shadow: -68px 100px 0 -3px #ff922b, 24px 190px 0 4px #cc5de8;
}

.section-nogizaka::before {
  background: #f783ac;
  box-shadow: 62px 105px 0 3px #ffd43b, -16px 195px 0 -2px #51cf66;
}
.section-nogizaka::after {
  background: #cc5de8;
  box-shadow: -65px 95px 0 -3px #ff6b6b, 28px 185px 0 4px #74c0fc;
}

.section-treasure::before {
  background: #ffd43b;
  box-shadow: 70px 115px 0 -2px #51cf66, -14px 200px 0 4px #ff922b;
}
.section-treasure::after {
  background: #ff922b;
  box-shadow: -62px 105px 0 3px #f783ac, 16px 190px 0 -3px #74c0fc;
}

.section-points::before {
  background: #74c0fc;
  box-shadow: 65px 100px 0 4px #ffd43b, -14px 190px 0 -2px #ff6b6b;
}
.section-points::after {
  background: #ffd43b;
  box-shadow: -70px 110px 0 -3px #51cf66, 26px 185px 0 3px #cc5de8;
}

.section-huawei::before {
  background: #ff6b6b;
  box-shadow: 68px 108px 0 -2px #f783ac, -10px 196px 0 4px #ffd43b;
}
.section-huawei::after {
  background: #74c0fc;
  box-shadow: -63px 98px 0 4px #ff922b, 22px 183px 0 -3px #51cf66;
}

.section-podcast::before {
  background: #51cf66;
  box-shadow: 60px 112px 0 3px #cc5de8, -16px 198px 0 -2px #ffd43b;
}
.section-podcast::after {
  background: #ffd43b;
  box-shadow: -68px 102px 0 -3px #ff6b6b, 26px 188px 0 3px #74c0fc;
}

/* 中間幅では非表示（コンテンツと重なるため） */
@media (min-width: 768px) and (max-width: 1000px) {
  .campaign-section::before,
  .campaign-section::after {
    display: none;
  }
}

/* SP: 小さい風船をセクション上部の余白エリアに表示 */
@media (max-width: 767px) {
  .campaign-section::before,
  .campaign-section::after {
    top: 12px;
    width: 26px;
    height: 32px;
    box-shadow: none;
  }
}

/* ===== Section Title ===== */
.section-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-title {
  flex: 1;
  background: #fff;
  border: 3px solid #1a3566;
  border-radius: 50px;
  padding: 14px 30px;
  font-size: 24px;
  font-weight: bold;
  color: #1a3566;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* 音符 */
.note-img {
  width: 55px !important;
  height: auto !important;
  flex-shrink: 0;
}

.note-left {
  animation: float-note 2.8s ease-in-out infinite;
}

.note-right {
  animation: float-note 2.8s ease-in-out infinite;
  animation-delay: 0.45s;
}

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

/* ===== Campaign Content ===== */
.campaign-content {
  text-align: center;
}

.campaign-desc {
  font-size: 22px;
  font-weight: bold;
  color: #1a3566;
  margin-bottom: 16px !important;
  line-height: 1.7;
}

.campaign-period-bar {
  background: #1a3566;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 13px 20px;
  margin: 0 0 24px;
  line-height: 1.5;
  /* 画面幅いっぱいに伸ばす */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.campaign-tag {
  display: block;
  background: #1a3566;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 13px 20px;
  margin: 0 0 24px !important;
  /* 画面幅いっぱいに伸ばす */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.campaign-banner-link {
  display: block;
  max-width: 620px;
  margin: 0 auto 24px;
  border-radius: 12px;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.campaign-banner-link:hover {
  opacity: 0.7;
}

.campaign-banner-link img {
  width: 100%;
}

/* ===== Button ===== */
.btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a3566;
  color: #fff !important;
  font-size: 16px;
  font-weight: bold;
  padding: 14px 48px;
  border-radius: 50px;
  margin-top: 8px;
  transition: opacity 0.2s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.btn-detail:hover {
  opacity: 0.7;
}

/* ===== Responsive（〜767px） ===== */
@media (max-width: 767px) {
  .main-hero-space {
    /* SP では比率が変わる場合があるため調整 */
    padding-top: 52%;
  }

  .main-section .banner-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px 0 50px;
  }

  /* SP時は banner04 と banner05 の表示順を入れ替え */
  .main-section .banner-card:nth-child(1) { order: 1; }
  .main-section .banner-card:nth-child(2) { order: 2; }
  .main-section .banner-card:nth-child(3) { order: 3; }
  .main-section .banner-card:nth-child(4) { order: 5; }
  .main-section .banner-card:nth-child(5) { order: 4; }
  .main-section .banner-card:nth-child(6) { order: 6; }

  .main-section .banner-card-inner {
    padding: 4px;
  }

  .main-section .banner-card-label {
    font-size: 11px;
    padding: 5px 4px;
    border-radius: 6px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .main-section .banner-card-arrow {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .main-section .banner-card {
    padding-bottom: 14px;
  }

  .campaign-section {
    margin-top: -50px;
    scroll-margin-top: 50px;
  }

  .section-sns,
  .section-nogizaka,
  .section-treasure,
  .section-points,
  .section-huawei,
  .section-podcast {
    padding: 70px 0 70px !important;
  }

  .section-title {
    font-size: 15px;
    padding: 10px 16px;
    border-width: 2px;
  }

  .note-img {
    width: 32px !important;
    height: auto !important;
  }

  .section-title-row {
    gap: 8px;
    margin-bottom: 20px;
  }

  .campaign-desc {
    font-size: 16px;
  }

  .campaign-period-bar {
    font-size: 13px;
    padding: 11px 14px;
  }

  .btn-detail {
    font-size: 14px;
    padding: 12px 44px;
  }

  .campaign-banner-link {
    max-width: 100%;
    border-radius: 8px;
  }
}
