:root {
  --navy: #092754;
  --green: #00a45a;
  --green-dark: #008f50;
  --green-light: #dff8e9;
  --line: #83e4b2;
  --white: #fff;
  --container-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--navy);
  background: var(--white);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-header {
  height: 108px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #edf3f0;
}

.site-header__inner {
  width: min(var(--container-width), calc(100% - 128px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding { display: flex; align-items: center; }

.site-logo { display: block; width: 266px; line-height: 0; }
.site-logo img, .footer-logo img { display: block; width: 100%; height: auto; }

.site-branding__divider {
  width: 2px;
  height: 40px;
  margin: 0 32px;
  background: #cad5df;
}

.site-branding__event {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .01em;
}

.header-back {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  color: var(--green);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.header-back span { font-size: 42px; font-weight: 300; line-height: 1; }

.thanks-main {
  position: relative;
  min-height: 934px;
  overflow: hidden;
  background:
    radial-gradient(circle at 49% 45%, rgba(255,255,255,.98) 0 34%, rgba(255,255,255,.72) 58%, transparent 78%),
    linear-gradient(135deg, #f1fff6 0%, #fff 27%, #fff 72%, #effff5 100%);
}

.thanks-section {
  position: relative;
  z-index: 2;
  width: min(1112px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 30px;
  text-align: center;
}

.thanks-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0 0 13px;
  color: var(--green);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: .05em;
}

.thanks-label::before, .thanks-label::after {
  width: 46px;
  height: 3px;
  content: "";
  background: var(--green);
}

h1 {
  margin: 0 0 29px;
  font-size: clamp(34px, calc(2.8vw - 2px), 52px);
  line-height: 1.3;
  letter-spacing: .025em;
  font-weight: 800;
  text-shadow: 0 3px 8px rgba(9, 39, 84, .08);
}

.thanks-card {
  min-height: 680px;
  padding: 39px 110px 30px;
  background: rgba(255, 255, 255, .88);
  border: 2px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 18px 50px rgba(0, 142, 80, .08);
}

.check-icon {
  display: grid;
  width: 112px;
  height: 112px;
  margin: 0 auto 26px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #009752, #00ad60);
  border-radius: 50%;
}

.check-icon svg { width: 70px; height: 70px; }

.thanks-card__lead {
  margin: 0 0 10px;
  font-size: 31px;
  line-height: 1.55;
  font-weight: 800;
  letter-spacing: .01em;
}

.thanks-card__text {
  margin: 0;
  font-size: 23px;
  line-height: 1.65;
  font-weight: 500;
}

.notice {
  min-height: 101px;
  margin: 21px 0 16px;
  padding: 18px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--green-dark);
  background: #f0fbf5;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 800;
}

.notice__icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 4px solid currentColor;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.thanks-card__note {
  margin: 0 0 31px;
  color: #58708e;
  font-size: 17px;
  line-height: 1.6;
}

.primary-button {
  width: min(632px, 100%);
  min-height: 82px;
  margin: 0 auto;
  padding: 16px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
  background: linear-gradient(90deg, #00aa5c, #009950);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 155, 84, .18);
  font-size: 29px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}

.primary-button span { position: absolute; right: 47px; font-size: 39px; font-weight: 300; }
.primary-button:hover { filter: brightness(.94); transform: translateY(-2px); }
.primary-button:focus-visible, .header-back:focus-visible, .footer-nav a:focus-visible { outline: 3px solid #f8d33a; outline-offset: 4px; }

.thanks-card__footer-note { margin: 20px 0 0; font-size: 18px; font-weight: 500; }

.decoration { position: absolute; z-index: 0; transform: rotate(45deg); border-radius: 50px; }
.decoration--left { top: 18px; left: -69px; width: 440px; height: 92px; background: rgba(154, 238, 155, .28); }
.decoration--right { right: -23px; bottom: 32px; width: 360px; height: 72px; background: rgba(154, 238, 155, .24); }

.dot-pattern {
  position: absolute;
  z-index: 1;
  width: 156px;
  height: 105px;
  opacity: .65;
  background-image: radial-gradient(circle, #8be7a9 0 6px, transparent 7px);
  background-size: 30px 30px;
}
.dot-pattern--top { top: 50px; right: 20px; }
.dot-pattern--bottom { bottom: 8px; left: 49px; }

.site-footer {
  padding: 30px 0;
  color: #fff;
  background: var(--green);
}

.footer-inner {
  width: min(var(--container-width), calc(100% - 128px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  width: 145px;
  padding: 8px 12px;
  border-radius: 3px;
  background: #fff;
  line-height: 0;
}

.footer-nav { display: flex; gap: 22px; margin-left: auto; }
.footer-nav a { font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-footer small { margin-left: auto; font-size: 10px; white-space: nowrap; }

@media (max-width: 1200px) {
  .site-header__inner, .footer-inner { width: calc(100% - 48px); }
  .thanks-card { padding-right: 60px; padding-left: 60px; }
}

@media (max-width: 1100px) {
  .footer-nav { display: none; }
}

@media (max-width: 820px) {
  .site-header { height: auto; min-height: 76px; }
  .site-header__inner { width: calc(100% - 32px); padding: 12px 0; }
  .site-logo { width: 145px; }
  .site-branding__divider { height: 30px; margin: 0 14px; }
  .site-branding__event { font-size: 14px; }
  .header-back { font-size: 0; gap: 0; }
  .header-back span { font-size: 34px; }
  .thanks-main { min-height: auto; }
  .thanks-section { width: calc(100% - 32px); padding-top: 38px; }
  .thanks-label { gap: 14px; font-size: 18px; }
  .thanks-label::before, .thanks-label::after { width: 30px; height: 2px; }
  h1 { margin-bottom: 22px; font-size: clamp(29px, 8vw, 42px); }
  .thanks-card { min-height: 0; padding: 28px 24px; border-radius: 12px; }
  .check-icon { width: 78px; height: 78px; margin-bottom: 20px; }
  .check-icon svg { width: 50px; height: 50px; }
  .thanks-card__lead { font-size: 21px; }
  .thanks-card__text { font-size: 16px; }
  .thanks-card__text br { display: none; }
  .notice { min-height: 0; padding: 15px; gap: 12px; font-size: 15px; }
  .notice__icon { flex-basis: 38px; width: 38px; height: 38px; border-width: 3px; font-size: 22px; }
  .thanks-card__note, .thanks-card__footer-note { font-size: 14px; }
  .primary-button { min-height: 64px; padding: 12px 42px 12px 25px; font-size: 20px; }
  .primary-button span { right: 25px; font-size: 30px; }
  .footer-inner { width: calc(100% - 32px); flex-wrap: wrap; justify-content: space-between; }
  .site-footer small { margin-left: 0; }
  .dot-pattern { opacity: .35; }
}

@media (max-width: 520px) {
  .site-logo { width: 112px; }
  .site-branding__divider { margin: 0 10px; }
  .site-branding__event { max-width: 110px; line-height: 1.35; }
  .thanks-section { width: calc(100% - 24px); }
  h1 { font-size: 28px; }
  .thanks-card { padding: 25px 16px; }
  .thanks-card__lead { font-size: 19px; }
  .notice { align-items: flex-start; text-align: left; }
  .decoration--left { left: -260px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
