/* =========================================================
   Forum 2026 Thanks page
   (style.css 併用・このファイルはサンクス固有のみ)
   Breakpoints: same as style.css
   ========================================================= */

/* Header: logo only — SP で CTA 列グリッドを打ち消す */
body.is-thanks .l-header__inner {
  justify-content: flex-start;
}

body.is-thanks .l-header__subnav {
  display: none !important;
}

/* PC: Figma パネル pt 264 はヘッダー重ね込み込み。固定ヘッダー分を差し引く */
.p-thanks__panel {
  background: #f3f3f3;
  border-radius: 60px 60px 0 0;
  padding: calc(264px - var(--header-h)) 0 184px;
}

.p-thanks__inner {
  width: 1164px;
  max-width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.p-thanks__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.p-thanks__title {
  width: 100%;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.5;
  color: #052731;
  text-align: center;
}

.p-thanks__body {
  width: 620px;
  max-width: 100%;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: #052731;
}

.p-thanks__body p + p {
  margin-top: 0;
}

.p-thanks__body p:last-child {
  margin-top: 1.8em;
}

.p-thanks__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.p-thanks__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  color: #052731;
  font-feature-settings: "palt" 1;
  text-decoration: none;
}

.p-thanks__link img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.p-thanks__link:hover {
  opacity: 0.75;
}

/* ---------- 801 – 1439 ---------- */
@media (min-width: 801px) and (max-width: 1439px) {
  .p-thanks__panel {
    border-radius: calc(60 / 1440 * 100vw) calc(60 / 1440 * 100vw) 0 0;
    padding: calc((264 / 1440 * 100vw) - var(--header-h)) 0 calc(184 / 1440 * 100vw);
  }

  .p-thanks__inner {
    width: calc(1164 / 1440 * 100vw);
    gap: calc(80 / 1440 * 100vw);
  }

  .p-thanks__content {
    gap: calc(64 / 1440 * 100vw);
  }

  .p-thanks__title {
    font-size: calc(40 / 1440 * 100vw);
  }

  .p-thanks__body {
    width: calc(620 / 1440 * 100vw);
    font-size: calc(16 / 1440 * 100vw);
  }

  .p-thanks__links {
    gap: calc(32 / 1440 * 100vw);
  }

  .p-thanks__link {
    font-size: calc(16 / 1440 * 100vw);
  }

  .p-thanks__link img {
    width: calc(18 / 1440 * 100vw);
    height: calc(18 / 1440 * 100vw);
  }
}

/* ---------- ≤ 800 SP ---------- */
@media (max-width: 800px) {
  /* サブナビなし: LP の 136 ではなく 80 に合わせる */
  body.is-thanks {
    --header-h: calc(80 / 375 * 100vw);
  }

  body.is-thanks .l-header__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    grid-template-columns: none;
    padding: 0 0 0 calc(10 / 375 * 100vw);
    min-height: calc(80 / 375 * 100vw);
    height: calc(80 / 375 * 100vw);
    max-width: none;
  }

  .p-thanks__panel {
    border-radius: calc(60 / 375 * 100vw) calc(60 / 375 * 100vw) 0 0;
    padding: calc(104 / 375 * 100vw) calc(20 / 375 * 100vw);
  }

  .p-thanks__inner {
    width: 100%;
    gap: calc(80 / 375 * 100vw);
  }

  .p-thanks__content {
    gap: calc(48 / 375 * 100vw);
  }

  .p-thanks__title {
    font-size: calc(28 / 375 * 100vw);
  }

  .p-thanks__body {
    width: 100%;
    font-size: calc(14 / 375 * 100vw);
  }

  .p-thanks__links {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    gap: calc(24 / 375 * 100vw);
  }

  .p-thanks__link {
    font-size: calc(16 / 375 * 100vw);
  }

  .p-thanks__link img {
    width: calc(18 / 375 * 100vw);
    height: calc(18 / 375 * 100vw);
  }
}
