/* ==============================================
   Sponsor Detail Page: スポンサー詳細ページ
============================================== */

/* コンテナ */
.custom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

/* バナーセクション */
.sponsor-banner-section {
  width: 100%;
  margin-bottom: 0;
  padding-top: 80px; /* ヘッダーの高さ分だけ下げる */
}

.sponsor-banner-wrapper {
  width: 100%;
  overflow: hidden;
}

.sponsor-banner-link {
  display: block;
  width: 100%;
  transition: opacity 0.25s ease;
}

.sponsor-banner-link:hover {
  opacity: 0.9;
}

.sponsor-banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 事務所情報ヘッダー */
.sponsor-header-section {
  background: #fff;
  padding: 60px 0;
}

.sponsor-header-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.sponsor-header-logo {
  flex: 0 0 200px;
}

.sponsor-logo-main {
  width: 100%;
  height: auto;
  display: block;
}

.sponsor-header-info {
  flex: 1;
  min-width: 300px;
}

.sponsor-header-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: #111;
}

.sponsor-header-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 30px;
}

.sponsor-header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sponsor-action-btn {
  white-space: nowrap;
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.sponsor-action-btn-primary {
  background: #f3704b;
  color: #fff;
  border-color: #f3704b;
}

.sponsor-action-btn-primary:hover {
  background: #ff8c6e;
  border-color: #ff8c6e;
}

.sponsor-action-btn-x {
  background: #111;
  color: #fff;
  border-color: #111;
}

.sponsor-action-btn-x:hover {
  background: #000;
  border-color: #000;
}

.sponsor-action-btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  border-color: transparent;
}

.sponsor-action-btn-instagram:hover {
  opacity: 0.9;
}

.sponsor-action-btn-line {
  background: linear-gradient(45deg, #06c755 0%, #00b54a 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(0, 181, 74, 0.18);
}

.sponsor-action-btn-line:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 181, 74, 0.22);
  filter: brightness(1.03);
}

.sponsor-action-btn-line:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 181, 74, 0.18);
}



/* 強み画像 */
.sponsor-highlight-image {
  background: #f5f5f5;
  padding: 40px 0;
}

.sponsor-highlight-image-wrapper {
  width: 100%;
  text-align: center;
}

.sponsor-highlight-image-main {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 事業所情報 */
.sponsor-info-section {
  background: #fff;
}

.sponsor-info-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 30px;
}

.sponsor-info-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
}

.info-meta-item {
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
}

/* 所属ライバー紹介 */
.sponsor-livers-section {
  background: #f5f5f5;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 40px;
  color: #111;
  text-align: center;
}

.sponsor-livers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PC: 3列固定 */
  gap: 32px;
  margin-bottom: 30px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.liver-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.liver-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.liver-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
}

.liver-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.liver-image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(45deg, #f2f2f2 0, #f2f2f2 12px, #fafafa 12px, #fafafa 24px);
  color: #666;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.liver-name {
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  text-align: center;
  margin: 0;
}

.sponsor-livers-note {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* CTAバナー */
.sponsor-cta-banner-section {
  background: #fff;
  padding: 40px 0;
}

.sponsor-cta-banner-wrapper {
  width: 100%;
  text-align: center;
}

.sponsor-cta-link {
  display: inline-block;
  transition: opacity 0.25s ease;
}

.sponsor-cta-link:hover {
  opacity: 0.9;
}

.sponsor-cta-banner-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 関連記事 */
.sponsor-related-articles {
  background: #fff;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.article-card-new {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card-new:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.article-link-new {
  display: block;
  text-decoration: none;
  color: inherit;
}

.article-image-new {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f5f5;
}

.article-thumb-new {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-content-new {
  padding: 20px;
}

.article-meta-new {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.article-date-new {
  font-size: 0.85rem;
  color: #666;
}

.article-category-new {
  display: inline-block;
  padding: 4px 12px;
  background: #f3704b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}

.article-title-new {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 12px;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-excerpt-new {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #666;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-btn {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f3704b;
  text-decoration: none;
}

.read-more-btn:hover {
  text-decoration: underline;
}

/* ページネーション */
.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination .page-numbers li {
  margin: 0;
  padding: 0;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
  display: inline-block;
  padding: 10px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  min-width: 44px;
  text-align: center;
}

.pagination .page-numbers a:hover {
  border-color: #f3704b;
  color: #f3704b;
  background: rgba(243, 112, 75, 0.04);
}

.pagination .page-numbers .current {
  border-color: #f3704b;
  background: #f3704b;
  color: #fff;
}

.pagination .page-numbers .dots {
  border: none;
  background: transparent;
  color: rgba(17, 17, 17, 0.4);
}

.no-articles {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 1.1rem;
}


/* PC版のバナー最大高さ（画像が大きすぎるのを防ぐ） */
@media screen and (min-width: 769px) {
  .sponsor-banner-wrapper {
    max-height: 520px;
  }

  .sponsor-banner-image {
    width: 100%;
    height: 520px;
    object-fit: contain;
    background: #fff;
  }
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .sponsor-banner-section {
    padding-top: 80px; /* スマホでもヘッダーの高さ分だけ下げる */
  }

  .section {
    padding: 40px 0;
  }

  .sponsor-header-content {
    flex-direction: column;
    gap: 24px;
  }

  .sponsor-header-logo {
    flex: 0 0 auto;
    width: 220px;
    max-width: 220px;
    margin: 0 auto;
  }

  .sponsor-header-info {
    min-width: 0;
    width: 100%;
  }

  .sponsor-header-title {
    font-size: 1.6rem;
  }

  .sponsor-header-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .sponsor-action-btn {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    white-space: nowrap;
  }


  .liver-name {
    padding: 12px;
    font-size: 0.85rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sponsor-livers-grid {
    grid-template-columns: repeat(3, 1fr); /* スマホ: 3列固定 */
    gap: 16px;
    max-width: 100%;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
