:root {
  --tm-thanks-black: #050505;
  --tm-thanks-white: #ffffff;
  --tm-thanks-gold: #b4a15f;
  --tm-thanks-serif: "Noto Serif JP", serif;
  --tm-thanks-sans: "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--tm-thanks-black) !important;
}

body.tm-stage-thanks-page {
  color: var(--tm-thanks-white);
  font-family: var(--tm-thanks-sans);
  line-height: 1.8;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

body.tm-stage-thanks-page .wp-site-blocks,
body.tm-stage-thanks-page .wp-block-post-content,
body.tm-stage-thanks-page .entry-content,
body.tm-stage-thanks-page article,
body.tm-stage-thanks-page main.wp-block-group,
body.tm-stage-thanks-page .wp-block-post-content > * {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.tm-stage-thanks-page .wp-site-blocks > header,
body.tm-stage-thanks-page .wp-site-blocks > footer,
body.tm-stage-thanks-page .entry-header,
body.tm-stage-thanks-page .entry-title,
body.tm-stage-thanks-page .page-title {
  display: none !important;
}

#wpadminbar {
  z-index: 1000000;
}

.tm-thanks {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100svh;
  padding: 64px 24px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 76% 18%, rgba(180, 161, 95, 0.12), transparent 24%),
    radial-gradient(circle at 18% 76%, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(135deg, #030303 0%, #0b0b0b 58%, #15130e 100%);
}

.tm-thanks::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 52px 52px;
}

.tm-thanks-ink {
  position: absolute;
  right: -7vw;
  bottom: -16vh;
  z-index: -2;
  width: min(68vw, 920px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: clamp(34px, 5vw, 78px) solid rgba(255, 255, 255, 0.025);
  transform: rotate(-18deg);
}

.tm-thanks-line {
  position: absolute;
  top: -12%;
  left: 61%;
  z-index: -1;
  width: 1px;
  height: 125%;
  background: linear-gradient(to bottom, transparent, rgba(180,161,95,0.32), transparent);
  transform: rotate(18deg);
}

.tm-thanks-card {
  width: min(980px, 100%);
  padding: clamp(38px, 7vw, 76px);
  border: 1px solid rgba(180, 161, 95, 0.34);
  background: rgba(4, 4, 4, 0.56);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tm-thanks-eyebrow {
  margin: 0 0 24px;
  color: var(--tm-thanks-gold);
  font-family: var(--tm-thanks-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.tm-thanks h1 {
  margin: 0;
  color: var(--tm-thanks-white);
  font-family: var(--tm-thanks-serif);
  font-size: clamp(36px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.04em;
}

.tm-thanks-title-desktop {
  display: block;
  white-space: nowrap;
}

.tm-thanks-title-mobile {
  display: none;
}

.tm-thanks-lead {
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 2.1;
}

.tm-thanks-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 30px;
  margin-top: 36px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.tm-thanks-info p {
  margin: 0;
  color: rgba(255,255,255,0.88);
  font-family: var(--tm-thanks-serif);
  font-size: 14px;
  line-height: 1.8;
}

.tm-thanks-info span {
  display: block;
  margin-bottom: 6px;
  color: rgba(180,161,95,0.94);
  font-family: var(--tm-thanks-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.tm-thanks-note {
  margin: 24px 0 0;
  color: rgba(255,255,255,0.58);
  font-size: 12px;
  line-height: 1.9;
}

.tm-thanks-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 250px;
  min-height: 56px;
  margin-top: 36px;
  padding: 0 28px;
  background: linear-gradient(135deg, #8f7f45, #b5a363);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  transition: transform 0.24s ease, background 0.24s ease;
}

.tm-thanks-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #a89555, #c4b172);
}

.tm-thanks-button span {
  width: 42px;
  height: 1px;
  background: currentColor;
}

.tm-thanks-brand {
  margin: 42px 0 0;
  color: rgba(255,255,255,0.36);
  font-family: var(--tm-thanks-serif);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.14em;
}

@media (max-width: 640px) {
  .tm-thanks {
    align-items: start;
    padding: 36px 16px;
  }

  .tm-thanks-card {
    padding: 34px 24px;
  }

  .tm-thanks h1 {
    font-size: clamp(24px, 8vw, 34px);
    line-height: 1.45;
    letter-spacing: 0.02em;
  }

  .tm-thanks-title-desktop {
    display: none;
  }

  .tm-thanks-title-mobile {
    display: block;
  }

  .tm-thanks-title-mobile > span {
    display: block;
    white-space: nowrap;
  }

  .tm-thanks-info {
    grid-template-columns: 1fr;
  }

  .tm-thanks-button {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .tm-thanks-card {
    animation: tmThanksIn 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  @keyframes tmThanksIn {
    from {
      opacity: 0;
      transform: translateY(20px);
      filter: blur(7px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
  }
}
