@import url("https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700;900&display=swap");
:root {
  --sky: #87d1f0;
  --sky-deep: #36a5d1;
  --sky-pale: #edf9fd;
  --green: #00ae33;
  --green-dark: #008f2a;
  --gold: #c7a65a;
  --gold-deep: #98752b;
  --navy: #2f4858;
  --ivory: #fffdf7;
  --ink: #333333;
  --muted: #68787f;
  --line: #d9ebf2;
  --font-round: "秀英にじみ丸ゴシック B JIS2004", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sky-pale);
  color: var(--ink);
  font-family: var(--font-round);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-canvas {
  min-height: 100vh;
  padding: 30px 16px;
  background:
    radial-gradient(circle at 50% 0, rgba(135, 209, 240, 0.34), transparent 45%),
    linear-gradient(145deg, #233946, var(--navy));
}

.invite-page {
  width: min(680px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(199, 166, 90, 0.62);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(47, 72, 88, 0.14);
}

.site-header {
  min-height: 82px;
  padding: 15px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(199, 166, 90, 0.28);
  background: #ffffff;
}

.site-header a {
  display: block;
}

.site-header img {
  width: 150px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.site-header p {
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(199, 166, 90, 0.55);
  border-radius: 100px;
  background: var(--ivory);
  color: var(--gold-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero {
  padding: 38px 52px 58px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.7), transparent 48%),
    var(--sky-pale);
  text-align: center;
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(54, 165, 209, 0.15);
  transform: rotate(45deg);
  pointer-events: none;
}

.hero::before {
  width: 190px;
  height: 190px;
  left: -135px;
  top: -95px;
}

.hero::after {
  width: 130px;
  height: 130px;
  right: -90px;
  bottom: -70px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--gold-deep);
  font: 700 10px/1.4 Arial, sans-serif;
  letter-spacing: 0.17em;
}

.code-status {
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  margin: 0 auto 24px;
  padding: 6px 13px 6px 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cde2e9;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.88);
  color: #6d8189;
  font-size: 10px;
  font-weight: 700;
}

.code-status > span:first-child {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #bdced5;
  color: #ffffff;
}

.code-status.is-applied {
  border-color: rgba(199, 166, 90, 0.5);
  background: var(--ivory);
  color: var(--gold-deep);
}

.code-status.is-applied > span:first-child {
  background: var(--gold);
}

.code-status b {
  color: var(--ink);
  font-family: Arial, sans-serif;
  letter-spacing: 0.06em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(27px, 5vw, 37px);
  font-weight: 700;
  line-height: 1.65;
}

.hero h1 strong {
  display: block;
  color: var(--sky-deep);
  font-size: clamp(34px, 6.5vw, 49px);
  line-height: 1.35;
}

.hero h1 strong > span {
  display: block;
  margin-top: 7px;
  color: #526b76;
  font-size: clamp(19px, 3.6vw, 25px);
  line-height: 1.5;
}

.hero h1 em {
  margin: 0 4px;
  color: var(--green);
  font-size: 1.45em;
  font-style: normal;
  white-space: nowrap;
}

.hero-lead {
  max-width: 490px;
  margin: 21px auto 27px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.9;
}

.invite-actions {
  width: min(500px, 100%);
  margin: 0 auto;
  text-align: left;
}

.invite-code-box {
  min-height: 68px;
  padding: 11px 11px 11px 17px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(199, 166, 90, 0.52);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(152, 117, 43, 0.08);
}

.invite-code-box > span {
  color: #7e9198;
  font-size: 9px;
  font-weight: 700;
}

.invite-code-box strong {
  min-width: 0;
  overflow: hidden;
  color: #2f4858;
  font: 700 19px/1.2 Arial, sans-serif;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-code-box button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--sky);
  border-radius: 7px;
  background: #f7fcfe;
  color: #399bc1;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.invite-code-box button:hover:not(:disabled) {
  background: var(--sky-pale);
}

.invite-code-box.is-empty strong {
  color: #98a7ad;
  font-family: var(--font-round);
  font-size: 13px;
  letter-spacing: 0;
}

.invite-code-box button:disabled {
  border-color: #dfe8eb;
  background: #f4f7f8;
  color: #aeb9bd;
  cursor: not-allowed;
}

.line-cta {
  min-height: 66px;
  margin-top: 9px;
  padding: 8px 15px 8px 9px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 10px;
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 174, 51, 0.18);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.line-cta:hover,
.bottom-cta a:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.line-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #ffffff;
  color: var(--green);
  font: 700 9px/1 Arial, sans-serif;
}

.line-cta > span:nth-child(2) {
  flex: 1;
}

.line-cta small {
  display: block;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 8px;
}

.line-cta i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-style: normal;
}

.micro-note {
  margin: 16px 0 0;
  color: #819198;
  font-size: 8px;
}

.benefit,
.howto {
  padding: 58px 52px;
  text-align: center;
}

.benefit {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}

.benefit h2,
.howto h2 {
  margin: 0 0 28px;
  font-size: 27px;
}

.reward-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid #cadde5;
  border-collapse: separate;
  border-radius: 14px;
  border-spacing: 0;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(47, 72, 88, 0.09);
  text-align: left;
}

.reward-table thead th {
  padding: 11px 18px;
  border: 0;
  background: var(--navy);
  color: #ffffff;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.reward-table thead th:first-child {
  width: 142px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}

.reward-row th,
.reward-row td {
  padding: 23px 20px;
  border: 0;
  vertical-align: middle;
}

.reward-row--inviter th,
.reward-row--inviter td {
  border-bottom: 1px solid #d8e5ea;
}

.reward-row th {
  border-right: 1px solid #d8e5ea;
  text-align: center;
}

.reward-row--inviter th {
  background: #fff8e8;
}

.reward-row--invitee th {
  background: var(--sky-pale);
}

.reward-row th span,
.reward-row th small {
  display: block;
}

.reward-row th span {
  color: var(--navy);
  font-size: 16px;
  font-weight: 900;
}

.reward-row th small {
  margin-top: 6px;
  color: #84939a;
  font-size: 8px;
}

.reward-row td p {
  margin: 0 0 7px;
  color: #667a83;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.65;
}

.reward-row td strong {
  display: inline-flex;
  align-items: baseline;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.reward-row td strong b {
  margin-right: 4px;
  color: var(--green);
  font: 900 39px/1 Arial, sans-serif;
}

.reward-row--invitee td strong b {
  margin: 0 5px;
  font-size: 44px;
}

.reward-row--invitee td .invitee-offer {
  max-width: 100%;
  justify-content: center;
  white-space: nowrap;
}

.invitee-offer > span {
  flex: 0 0 auto;
}

.reward-row td em {
  margin-left: 8px;
  padding: 5px 8px;
  display: inline-block;
  border-radius: 100px;
  background: var(--green);
  color: #ffffff;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  vertical-align: 4px;
}

.howto {
  background:
    linear-gradient(rgba(54, 165, 209, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 165, 209, 0.05) 1px, transparent 1px),
    #ffffff;
  background-size: 20px 20px;
}

.howto ol {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.howto li {
  padding: 19px 0;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.howto li:first-child {
  border-top: 1px solid var(--line);
}

.howto li > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sky);
  color: #ffffff;
  font: 700 16px Arial, sans-serif;
}

.howto li b {
  display: block;
  margin: 1px 0 5px;
  font-size: 14px;
}

.howto li p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.conditions {
  padding: 0 52px 50px;
  background: #ffffff;
}

.conditions details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fcfd;
}

.conditions summary {
  padding: 17px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  color: #526b76;
  font-size: 11px;
  font-weight: 700;
}

.conditions summary::-webkit-details-marker {
  display: none;
}

.conditions summary span {
  color: var(--sky-deep);
  font-size: 17px;
  transition: transform 0.2s ease;
}

.conditions details[open] summary span {
  transform: rotate(45deg);
}

.conditions details > div {
  padding: 0 18px 17px;
}

.conditions details p {
  margin: 0 0 8px;
  color: #6f8188;
  font-size: 9px;
  line-height: 1.8;
}

.conditions details p:last-child {
  margin-bottom: 0;
}

.bottom-cta {
  padding: 42px 52px;
  border-top: 3px solid var(--gold);
  background:
    radial-gradient(circle at 50% 0, rgba(135, 209, 240, 0.18), transparent 55%),
    var(--navy);
  text-align: center;
}

.bottom-cta p {
  margin: 0 0 13px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

.bottom-cta a {
  min-height: 64px;
  padding: 8px 16px 8px 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 10px;
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(47, 72, 88, 0.18);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.bottom-cta a > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ffffff;
  color: var(--green);
  font: 700 9px Arial, sans-serif;
}

.bottom-cta a > i {
  width: 32px;
  height: 32px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-style: normal;
}

footer {
  min-height: 86px;
  padding: 20px 28px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 12px 20px;
  background: #233946;
  color: #ffffff;
}

footer img {
  width: 105px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-meta {
  padding-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-meta small,
.terms-link {
  color: #9fb2bb;
  font-size: 8px;
}

.terms-link {
  font-size: 9px;
  letter-spacing: 0.04em;
  opacity: 0.82;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.terms-link:hover,
.terms-link:focus-visible {
  color: #ffffff;
  opacity: 1;
}

@media (max-width: 600px) {
  .site-canvas {
    padding: 0;
  }

  .invite-page {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-header {
    min-height: 70px;
    padding: 11px 18px;
  }

  .site-header img {
    width: 124px;
    height: 48px;
  }

  .site-header p {
    max-width: none;
    font-size: 8px;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
  }

  .hero {
    padding: 32px 20px 48px;
  }

  .code-status {
    font-size: 8px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero h1 strong {
    font-size: clamp(34px, 10.5vw, 44px);
  }

  .hero h1 strong > span {
    font-size: 18px;
  }

  .hero-lead {
    font-size: 10px;
  }

  .invite-code-box {
    padding: 12px;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
  }

  .invite-code-box > span {
    grid-column: 1 / -1;
  }

  .invite-code-box strong {
    font-size: 17px;
  }

  .invite-code-box button {
    min-height: 37px;
    padding: 0 10px;
    font-size: 8px;
  }

  .line-cta {
    font-size: 13px;
  }

  .benefit,
  .howto {
    padding: 51px 20px;
  }

  .benefit h2,
  .howto h2 {
    font-size: 25px;
  }

  .reward-table,
  .reward-table tbody,
  .reward-row,
  .reward-row th,
  .reward-row td {
    display: block;
    width: 100%;
  }

  .reward-table thead {
    display: none;
  }

  .reward-row--inviter th,
  .reward-row--inviter td {
    border-bottom: 0;
  }

  .reward-row--inviter {
    border-bottom: 1px solid #d8e5ea;
  }

  .reward-row th {
    padding: 12px 15px;
    border-right: 0;
    text-align: left;
  }

  .reward-row th span,
  .reward-row th small {
    display: inline-block;
  }

  .reward-row th span {
    font-size: 14px;
  }

  .reward-row th small {
    margin: 0 0 0 8px;
  }

  .reward-row td {
    padding: 22px 15px 25px;
    text-align: center;
  }

  .reward-row td strong {
    justify-content: center;
    font-size: 16px;
  }

  .reward-row td strong b {
    font-size: 35px;
  }

  .reward-row--invitee td strong b {
    font-size: clamp(34px, 10.5vw, 40px);
  }

  .reward-row--invitee td .invitee-offer {
    font-size: clamp(13px, 4.1vw, 16px);
  }

  .reward-row td em {
    margin: 8px auto 0;
    display: block;
    width: fit-content;
  }

  .conditions {
    padding: 0 20px 43px;
  }

  .bottom-cta {
    padding: 38px 20px;
  }

  .bottom-cta a {
    font-size: 12px;
  }

  footer {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
