/*
Theme Name: BUMP-UP Astra Child
Theme URI: https://bumpup2020.com/
Description: BUMP-UP専用のAstra子テーマ
Author: BUMP-UP
Template: astra
Version: 1.0.0
Text Domain: bump-up-astra-child
*/

:root {
  --bu-navy: #163449;
  --bu-orange: #c94700;
  --bu-white: #fff;
}

/* Shared heading hierarchy */
.bu-sub-hero h1,
.entry-title,
.log-title,
.wp-block-spectra-content:is(h1) {
  font-size: clamp(42px, 5vw, 64px) !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.035em !important;
}

.bu-sub-section h2,
.bu-act-main h2,
.bu-act-scenes h2,
.bu-ach-section h2,
.bu-ach-report h2,
.ev-section h2,
.ev-moments h2,
.contact-page h2 {
  font-size: clamp(32px, 4vw, 50px) !important;
  font-weight: 900 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em !important;
}

.bu-sub-section h3,
.bu-sub-value h3,
.bu-sub-area h3,
.bu-act-item h2,
.bu-ach-copy h3,
.bu-ach-card h3,
.ev-card h3,
.log-card h2 {
  font-size: clamp(21px, 2.2vw, 27px) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.015em !important;
}

.bu26-section-title,
.bu26-support-grid > div > h2,
.bumpup-sponsor-benefits__head h2,
.bu26-downloads-head h2 {
  font-size: clamp(38px, 4.2vw, 56px) !important;
  font-weight: 900 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.035em !important;
}

.bu26-news-card h3 {
  font-size: clamp(22px, 2.1vw, 27px) !important;
  font-weight: 800 !important;
  line-height: 1.32 !important;
  min-height: 2.64em;
}

/* Orange buttons always use white text */
.bu26-btn-orange,
.bu26-nav-cta,
.bu-sub-btn.primary,
.bu-act-btn.primary,
.bu-ach-btn.primary,
.ev-btn.primary,
.log-btn.primary,
.wp-element-button,
.bu26-btn-orange *,
.bu26-nav-cta *,
.bu-sub-btn.primary *,
.bu-act-btn.primary *,
.bu-ach-btn.primary *,
.ev-btn.primary *,
.log-btn.primary *,
.wp-element-button * {
  color: #fff !important;
}

/* Protect faces and documentary content from top cropping */
.bu-sub-origin img,
.bu-sub-typhoon-grid img,
.bu-sub-area img,
.bu-act-img img,
.bu-act-scene-grid img,
.bu-ach-media img,
.bu-ach-card-media img,
.ev-card img:not(.ev-poster),
.ev-moment-grid img,
.log-card img {
  object-position: center top !important;
}

.bu-sub-message-photo img,
.wp-image-2579 {
  object-position: center 18% !important;
}

.bu-ach-media.duo img,
.bu-ach-media.contain img,
.ev-card img.ev-poster {
  object-fit: contain !important;
  object-position: center center !important;
  background: #f3f6f7 !important;
}

.bu-act-img,
.bu-ach-media,
.ev-card,
.log-card {
  overflow: hidden;
}

.bu-act-img img,
.log-card img {
  aspect-ratio: 4 / 3 !important;
}

.ev-card > img:not(.ev-poster) {
  object-position: center 20% !important;
}

main h2[style*="display: none"],
main h2[aria-hidden="true"] {
  display: none !important;
}

@media (max-width: 767px) {
  .bu-sub-hero h1,
  .entry-title,
  .log-title,
  .wp-block-spectra-content:is(h1) {
    font-size: clamp(36px, 10vw, 44px) !important;
    line-height: 1.14 !important;
  }

  .bu-sub-section h2,
  .bu-act-main h2,
  .bu-act-scenes h2,
  .bu-ach-section h2,
  .bu-ach-report h2,
  .ev-section h2,
  .ev-moments h2,
  .bu26-section-title,
  .bu26-support-grid > div > h2,
  .bumpup-sponsor-benefits__head h2,
  .bu26-downloads-head h2 {
    font-size: clamp(30px, 8.4vw, 38px) !important;
    line-height: 1.2 !important;
  }

  .bu26-news-card h3 {
    min-height: 0;
  }
}
