/* KUSENBU QUEST 50 sponsorship — template page-race-sponsorship only. */

body.page-template-page-race-sponsorship {
  --race-accent: var(--wp--preset--color--accent-3, #503aa8);
  --kq50-sp-rule: color-mix(in srgb, currentColor 18%, transparent);
}

body.page-template-page-race-sponsorship main.wp-block-group {
  margin-top: 48px;
}

@media (max-width: 1024px) {
  body.page-template-page-race-sponsorship main.wp-block-group {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  body.page-template-page-race-sponsorship main.wp-block-group {
    margin-top: 32px;
  }
}

body.page-template-page-race-sponsorship .kq50-sp {
  max-width: var(--wp--style--global--content-size, 760px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  overflow-x: clip;
}

body.page-template-page-race-sponsorship .kq50-sp > * {
  margin-left: 0;
  margin-right: 0;
  min-width: 0;
}

/* Hero */

body.page-template-page-race-sponsorship .kq50-sp__hero {
  text-align: center;
  margin: 0 0 72px;
}

body.page-template-page-race-sponsorship .kq50-sp__kicker {
  font-family: "Century Gothic", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.3;
  margin: 0 0 12px;
}

body.page-template-page-race-sponsorship .kq50-sp__title {
  font-family: "Century Gothic", sans-serif;
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

body.page-template-page-race-sponsorship .kq50-sp__subtitle {
  font-family: "FOT-TsukuGo Pro", sans-serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 28px;
}

body.page-template-page-race-sponsorship .kq50-sp__lead {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 42em;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  body.page-template-page-race-sponsorship .kq50-sp__lead {
    font-size: 16px;
    line-height: 1.65;
  }
}

@media (max-width: 1024px) {
  body.page-template-page-race-sponsorship .kq50-sp__kicker {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  body.page-template-page-race-sponsorship .kq50-sp__hero {
    margin-bottom: 56px;
  }

  body.page-template-page-race-sponsorship .kq50-sp__kicker {
    font-size: 13px;
  }

  body.page-template-page-race-sponsorship .kq50-sp__title {
    font-size: clamp(32px, 10vw, 48px);
  }
}

/* Sections: flanking rules + space, not cards */

body.page-template-page-race-sponsorship .kq50-sp__section {
  margin: 0;
  padding: 0;
  border: 0;
}

body.page-template-page-race-sponsorship .kq50-sp__section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "FOT-TsukuGo Pro", sans-serif;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  margin: 0 0 36px;
}

body.page-template-page-race-sponsorship .kq50-sp__section-title::before,
body.page-template-page-race-sponsorship .kq50-sp__section-title::after {
  content: "";
  flex: 1 1 0;
  min-width: 12px;
  border-top: 1px solid var(--kq50-sp-rule);
}

body.page-template-page-race-sponsorship .kq50-sp__section-title + .kq50-sp__lead {
  margin-bottom: 36px;
}

body.page-template-page-race-sponsorship .kq50-sp__contact {
  margin-top: 96px;
  padding-top: 8px;
  padding-bottom: 24px;
  text-align: center;
}

/* Official / in-kind grids */

body.page-template-page-race-sponsorship .kq50-sp__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 0;
  margin: 0 0 72px;
  align-items: start;
}

body.page-template-page-race-sponsorship .kq50-sp__plan,
body.page-template-page-race-sponsorship .kq50-sp__kind {
  min-width: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

body.page-template-page-race-sponsorship .kq50-sp__plan-en {
  font-family: "Century Gothic", sans-serif;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 10px;
}

body.page-template-page-race-sponsorship .kq50-sp__plan-jp {
  font-family: "FOT-TsukuGo Pro", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  margin: 0 0 16px;
}

body.page-template-page-race-sponsorship .kq50-sp__plan-price,
body.page-template-page-race-sponsorship .kq50-sp__personal-price {
  font-family: var(--wp--preset--font-family--fot-tsukugo-pro), "FOT-TsukuGo Pro", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: normal;
  text-align: center;
  margin: 0 0 24px;
}

body.page-template-page-race-sponsorship .kq50-sp__kind-title {
  font-family: "FOT-TsukuGo Pro", sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  margin: 0 0 16px;
}

@media (min-width: 769px) {
  body.page-template-page-race-sponsorship .kq50-sp__kind-title {
    white-space: nowrap;
  }
}

body.page-template-page-race-sponsorship .kq50-sp__kind-label {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  margin: 0 0 4px;
}

body.page-template-page-race-sponsorship .kq50-sp__kind-value {
  font-family: "FOT-TsukuGo Pro", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  margin: 0 0 20px;
}

/* Benefit lists: 中黒 + hanging indent, natural height per plan */

body.page-template-page-race-sponsorship .kq50-sp__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

body.page-template-page-race-sponsorship .kq50-sp__row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 0.45em;
  align-items: start;
  margin: 0 0 0.18em;
  font-size: 14px;
  line-height: 1.65;
}

body.page-template-page-race-sponsorship .kq50-sp__row:last-child {
  margin-bottom: 0;
}

body.page-template-page-race-sponsorship .kq50-sp__mark {
  line-height: 1.65;
}

body.page-template-page-race-sponsorship .kq50-sp__item {
  min-width: 0;
  line-height: 1.65;
  overflow-wrap: normal;
  word-break: normal;
}

body.page-template-page-race-sponsorship .kq50-sp__grid--kinds .kq50-sp__rows,
body.page-template-page-race-sponsorship .kq50-sp__personal .kq50-sp__rows {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

@media (max-width: 768px) {
  body.page-template-page-race-sponsorship .kq50-sp__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
    margin-bottom: 96px;
  }

  body.page-template-page-race-sponsorship .kq50-sp__plan,
  body.page-template-page-race-sponsorship .kq50-sp__kind {
    padding: 0 0 40px;
    margin: 0 0 32px;
    border-bottom: 1px solid var(--kq50-sp-rule);
  }

  body.page-template-page-race-sponsorship .kq50-sp__plan:last-child,
  body.page-template-page-race-sponsorship .kq50-sp__kind:last-child {
    margin-bottom: 0;
    border-bottom: 0;
    padding-bottom: 8px;
  }

  body.page-template-page-race-sponsorship .kq50-sp__plan-en {
    font-size: 32px;
  }

  body.page-template-page-race-sponsorship .kq50-sp__kind-title {
    font-size: 28px;
    margin-bottom: 20px;
    white-space: nowrap;
  }

  body.page-template-page-race-sponsorship .kq50-sp__kind-label {
    font-size: 11px;
  }

  body.page-template-page-race-sponsorship .kq50-sp__grid--official .kq50-sp__rows,
  body.page-template-page-race-sponsorship .kq50-sp__grid--kinds .kq50-sp__rows {
    width: calc(100% - 40px);
    max-width: none;
    margin-inline: auto;
  }
}

/* Notes under prize column */

body.page-template-page-race-sponsorship .kq50-sp__notes {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.75;
}

body.page-template-page-race-sponsorship .kq50-sp__notes > * {
  margin: 0 0 0.4em;
  text-align: left !important;
}

body.page-template-page-race-sponsorship .kq50-sp__notes > *:last-child {
  margin-bottom: 0;
}

/* Personal supporter */

body.page-template-page-race-sponsorship .kq50-sp__personal .kq50-sp__lead {
  margin-bottom: 28px;
}

body.page-template-page-race-sponsorship .kq50-sp__personal .kq50-sp__rows {
  margin-bottom: 36px;
}

body.page-template-page-race-sponsorship .kq50-sp__personal .kq50-sp__personal-cta {
  justify-content: center;
}

body.page-template-page-race-sponsorship .kq50-sp__personal .entry-button .wp-block-button__link:not([href]) {
  cursor: default;
  pointer-events: none;
}

/* Contact */

body.page-template-page-race-sponsorship .kq50-sp__contact-en {
  font-family: "Century Gothic", sans-serif;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

body.page-template-page-race-sponsorship .kq50-sp__contact-jp {
  font-family: "FOT-TsukuGo Pro", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 20px;
}

body.page-template-page-race-sponsorship .kq50-sp__contact .kq50-sp__lead {
  margin-bottom: 36px;
}

body.page-template-page-race-sponsorship .kq50-sp__contact .wp-block-buttons {
  justify-content: center;
}

body.page-template-page-race-sponsorship .kq50-sp__personal .entry-button .wp-block-button__link {
  font-size: 16px !important;
  min-width: 220px !important;
  min-height: 52px !important;
  padding: 12px 24px !important;
  white-space: nowrap;
}

body.page-template-page-race-sponsorship .kq50-sp__contact .entry-button .wp-block-button__link {
  font-size: 16px !important;
  min-width: 220px !important;
  min-height: 52px !important;
  padding: 12px 28px !important;
  white-space: nowrap;
  max-width: 100%;
}

/* Gutenberg blocks: keep the former custom HTML look */

body.page-template-page-race-sponsorship .kq50-sp :is(.is-layout-flow, .is-layout-constrained, .wp-block-group) > * + * {
  margin-block-start: 0;
}

body.page-template-page-race-sponsorship .kq50-sp__grid {
  display: grid !important;
}

body.page-template-page-race-sponsorship .kq50-sp__grid > * {
  margin-block-start: 0 !important;
}

body.page-template-page-race-sponsorship .kq50-sp p,
body.page-template-page-race-sponsorship .kq50-sp .has-text-align-center {
  text-align: center !important;
  text-justify: auto;
}

body.page-template-page-race-sponsorship .kq50-sp__notes,
body.page-template-page-race-sponsorship .kq50-sp__notes p,
body.page-template-page-race-sponsorship .kq50-sp__rows,
body.page-template-page-race-sponsorship .kq50-sp__rows li {
  text-align: left !important;
  text-justify: auto;
}

body.page-template-page-race-sponsorship .kq50-sp__rows.wp-block-list,
body.page-template-page-race-sponsorship ul.kq50-sp__rows {
  list-style: none;
  padding: 0 0 0 1.45em !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

body.page-template-page-race-sponsorship .kq50-sp__rows li {
  position: relative;
  display: block;
  margin: 0 0 0.18em !important;
  padding: 0;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

body.page-template-page-race-sponsorship .kq50-sp__rows li:last-child {
  margin-bottom: 0 !important;
}

body.page-template-page-race-sponsorship .kq50-sp__rows li::before {
  content: "・";
  position: absolute;
  left: -1.45em;
  width: 1em;
  line-height: 1.65;
}
