* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  color: #172033;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}

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

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

body.p-renewal-page {
  min-height: 100svh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(23, 32, 51, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 32, 51, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #fff7de 0%, #ffffff 48%, #e7f6ff 100%);
  background-size: 54px 54px, 54px 54px, auto;
}

.p-renewal-header {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 10;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.p-renewal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 18px 8px 10px;
  border: 2px solid #172033;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 8px 8px 0 #172033;
}

.p-renewal-brand__mark {
  width: 46px;
  height: 42px;
  display: grid;
  place-items: center;
}

.p-renewal-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p-renewal-brand__name {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.p-renewal {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.p-renewal::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(30vw, 340px);
  content: "";
  background: #ffd447;
  clip-path: polygon(0 0, 100% 0, 64% 100%, 0 100%);
  opacity: 0.9;
}

.p-renewal::after {
  position: absolute;
  right: -12vw;
  bottom: 76px;
  width: 56vw;
  height: 24px;
  content: "";
  background: #22a6f2;
  border: 2px solid #172033;
  transform: rotate(-6deg);
}

.p-renewal__inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 150px 0 72px;
  display: grid;
  align-items: center;
}

.p-renewal__copy {
  position: relative;
  z-index: 3;
  width: min(620px, 58%);
}

.p-renewal__label {
  width: fit-content;
  margin: 0 0 20px;
  padding: 8px 14px;
  border: 2px solid #172033;
  border-radius: 999px;
  background: #ff6b2b;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.p-renewal__copy h1 {
  margin: 0;
  font-size: 60px;
  font-weight: 900;
  line-height: 1.08;
}

.p-renewal__lead {
  max-width: 570px;
  margin: 28px 0 0;
  color: #263248;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.9;
}

.p-renewal__note {
  max-width: 520px;
  margin: 16px 0 0;
  color: #5f6b7d;
  font-size: 16px;
  line-height: 1.9;
}

.p-renewal__character {
  position: absolute;
  right: 0;
  bottom: 34px;
  z-index: 2;
  width: min(43vw, 500px);
  max-height: calc(100svh - 156px);
  object-fit: contain;
  border: 3px solid #172033;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 14px 14px 0 #22a6f2;
}

.p-renewal__status {
  position: absolute;
  left: 0;
  bottom: 36px;
  z-index: 4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.p-renewal__status span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 2px solid #172033;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 5px 5px 0 rgba(23, 32, 51, 0.95);
}

.p-renewal__status span:first-child {
  background: #35d07f;
}

@media (max-width: 920px) {
  .p-renewal-header {
    top: 18px;
    width: min(1120px, calc(100% - 32px));
  }

  .p-renewal-brand {
    min-height: 52px;
    box-shadow: 6px 6px 0 #172033;
  }

  .p-renewal__inner {
    width: min(680px, calc(100% - 32px));
    min-height: 100svh;
    padding: 116px 0 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .p-renewal__copy {
    width: 100%;
  }

  .p-renewal__copy h1 {
    font-size: 52px;
  }

  .p-renewal__lead {
    font-size: 18px;
  }

  .p-renewal__character {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 360px);
    max-height: none;
    margin: 30px auto 0;
    box-shadow: 10px 10px 0 #22a6f2;
  }

  .p-renewal__status {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 28px;
  }

  .p-renewal::after {
    right: -30vw;
    bottom: 28px;
    width: 86vw;
  }
}

@media (max-width: 560px) {
  .p-renewal-brand__name {
    font-size: 19px;
  }

  .p-renewal__inner {
    justify-content: flex-start;
  }

  .p-renewal__label {
    margin-bottom: 16px;
    font-size: 12px;
  }

  .p-renewal__copy h1 {
    font-size: 39px;
  }

  .p-renewal__lead {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.85;
  }

  .p-renewal__note {
    font-size: 14px;
  }

  .p-renewal__character {
    width: min(100%, 310px);
    margin-top: 24px;
  }

  .p-renewal__status span {
    min-height: 34px;
    font-size: 12px;
  }
}
