/* ==========================================================================
   Cheer Ad (応援広告掲出のお知らせ) Section & Page Styles
   ========================================================================== */

/* --- Container & Base Layout --- */
.ad-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 65px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, #dbeafe 0%, #e0f2fe 45%, #eff6ff 100%);
  position: relative;
  animation: pageFadeIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pageFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.985);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Seamless Soft Yellow Glow Orb - Top Left */
.ad-container::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -50px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.8) 0%, rgba(254, 240, 138, 0.3) 45%, rgba(254, 240, 138, 0) 70%);
  border-radius: 50%;
  filter: blur(35px);
  pointer-events: none;
  z-index: 0;
}

/* Seamless Soft Yellow & Sky Glow Orb - Middle Right */
.ad-container::after {
  content: '';
  position: absolute;
  top: 320px;
  right: -60px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(253, 230, 138, 0.6) 0%, rgba(186, 230, 253, 0.4) 50%, rgba(254, 240, 138, 0) 72%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* --- Header Section --- */
.ad-header-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 5;
  width: 100%;
  max-width: 560px;
  position: relative;
  margin-bottom: 0;
}

.ad-ribbon-banner {
  position: relative;
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

.ad-ribbon-img {
  width: 100%;
  height: auto;
  display: block;
}

.ad-curved-title-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ad-title-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}



/* --- Main Content Stage --- */
.ad-content-wrapper {
  width: 100%;
  max-width: 560px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
}

/* Poster Main Graphic Frame */
.ad-poster-card {
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  padding: 12px;
  box-sizing: border-box;
  box-shadow: 0 12px 32px rgba(30, 58, 138, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
  border: 3px solid #fef08a;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.ad-poster-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30, 58, 138, 0.24);
}

.ad-poster-img-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #f8fafc;
}

.ad-poster-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

.ad-poster-img-wrapper:hover .ad-poster-img {
  transform: scale(1.02);
}

/* Zoom Badge Overlay on Poster */
.ad-zoom-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- Contact Board (Matching Hamburger Menu & Park Signboard Aesthetic) --- */
.ad-contact-board {
  width: 100%;
  font-family: var(--font-jap);
  background: #fdfbf7;
  border-radius: 24px 30px 20px 35px / 30px 25px 35px 28px;
  padding: 24px 20px;
  box-shadow: 4px 4px 0px #eadebf, 0 12px 32px rgba(0, 0, 0, 0.08);
  border: 2px solid #dfd9c4;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Inner Dashed Stitching Border Line (Same as Menu Card) */
.ad-contact-board::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1.5px dashed #dfd9c4;
  border-radius: 18px 24px 15px 28px / 24px 18px 28px 22px;
  pointer-events: none;
}

.ad-contact-board-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.ad-contact-title {
  font-family: var(--font-jap);
  font-size: 16px;
  font-weight: 800;
  color: #63503c;
  letter-spacing: 0.8px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ad-contact-icon {
  font-size: 18px;
}

.ad-contact-statement {
  font-size: 13.5px;
  font-weight: 700;
  color: #63503c;
  line-height: 1.7;
  margin: 0;
  background: rgba(243, 237, 217, 0.45);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed #d5c8a7;
  width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}

.contact-email,
.contact-x {
  color: #92531a;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* Contact Action Buttons */
.ad-contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
}

.ad-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 25px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(99, 80, 60, 0.15);
}

.ad-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 80, 60, 0.22);
}

.btn-email {
  background: linear-gradient(135deg, #7c93ac 0%, #5d7590 100%);
  color: #ffffff;
  border: 1px solid #4d647e;
}

.btn-x {
  background: linear-gradient(135deg, #473a2e 0%, #30261d 100%);
  color: #ffffff;
  border: 1px solid #241c15;
}


/* Image Zoom Modal Overlay */
.ad-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ad-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.ad-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ad-modal-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.ad-modal-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: #ffffff;
  font-size: 28px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.ad-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.45);
}


/* ==========================================================================
   Media Queries (Grouped at the bottom per AGENTS.md guidelines)
   ========================================================================== */

/* --- 1. Large Desktop / PC (min-width: 1200px) --- */
@media (min-width: 1200px) {
  .ad-container {
    padding: 70px 24px 50px;
  }

  .ad-header-section {
    max-width: 640px;
  }

  .ad-ribbon-banner {
    max-width: 600px;
  }

  .ad-title-curved {
    font-size: 44px;
  }

  .ad-content-wrapper {
    max-width: 640px;
  }
}

/* --- 2. Medium Desktop / Tablet Landscape (769px to 1199px) --- */
@media (min-width: 769px) and (max-width: 1199px) {
  .ad-container {
    padding: 65px 20px 40px;
  }

  .ad-header-section {
    max-width: 580px;
  }

  .ad-ribbon-banner {
    max-width: 520px;
  }

  .ad-title-curved {
    font-size: 46px;
  }
}

/* --- 3. Tablet Portrait / Small Tablet (481px to 768px) --- */
@media (min-width: 481px) and (max-width: 768px) {
  .ad-container {
    padding: 60px 16px 36px;
  }

  .ad-ribbon-banner {
    max-width: 440px;
  }

  .ad-title-curved {
    font-size: 40px;
  }
}

/* --- 4. Mobile Phone SP (max-width: 480px) --- */
@media (max-width: 480px) {
  .ad-container {
    padding: 52px 12px 52px;
  }

  .ad-ribbon-banner {
    max-width: 320px;
  }

  .ad-title-curved {
    font-size: 32px;
  }

  .ad-contact-board {
    padding: 20px 14px;
  }

  .ad-contact-statement {
    font-size: 12px;
    padding: 12px 12px;
  }
}