:root {
  --red: #e00000;
  --orange: #ff5a12;
  --deep-red: #c80000;
  --green: #58c414;
  --white: #ffffff;
  --panel: rgba(255, 62, 18, 0.92);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  color: var(--white);
  background: var(--deep-red);
}

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 22%, rgba(255, 126, 36, 0.8), transparent 32%),
    linear-gradient(112deg, #d70000 0%, #e90000 45%, #ff4b10 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(180, 0, 0, 0.08), transparent 52%);
  pointer-events: none;
}

.bg-word {
  position: absolute;
  z-index: 0;
  color: rgba(255, 255, 255, 0.14);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  user-select: none;
}

.bg-word-com {
  left: 2vw;
  top: 34vh;
  font-size: clamp(5rem, 13vw, 13rem);
}

.bg-word-net {
  right: 2vw;
  top: 15vh;
  font-size: clamp(5rem, 14vw, 14rem);
}

.bg-word-site {
  right: 2vw;
  bottom: 20vh;
  font-size: clamp(3.8rem, 9vw, 9rem);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: 28px 0 72px;
}

.brand {
  display: flex;
  justify-content: flex-start;
}

.brand-slot {
  position: relative;
  width: min(170px, 42vw);
  min-height: 58px;
  display: grid;
  place-items: center;
}

.brand-image {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.hero-copy {
  margin-top: clamp(32px, 7vh, 76px);
  text-align: center;
}

.rank-row {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.rank-slot {
  position: relative;
  width: clamp(180px, 28vw, 320px);
  min-height: 64px;
  display: grid;
  place-items: center;
}

.rank-image {
  max-width: 100%;
  max-height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(120, 0, 0, 0.2));
}

.optional-image.is-missing {
  display: none;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6.2vw, 5.6rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
  text-shadow: 0 5px 18px rgba(120, 0, 0, 0.25);
}

h1 span,
h1 strong {
  display: block;
}

h1 strong {
  font-size: 1.1em;
}

.share-area {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  align-items: end;
  gap: 0;
  margin: clamp(44px, 7vh, 70px) auto 0;
  width: min(1020px, 100%);
}

.image-slot {
  position: relative;
  z-index: 2;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(26px);
}

.image-slot::after {
  content: "";
  position: absolute;
  left: 45%;
  bottom: 26px;
  z-index: 1;
  width: min(300px, 72%);
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.24) 38%, rgba(0, 0, 0, 0.1) 62%, transparent 78%);
  filter: blur(14px);
  transform: translateX(-50%) rotate(-14deg);
  pointer-events: none;
}

.main-image {
  position: absolute;
  z-index: 3;
  max-width: min(360px, 100%);
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(-24px 30px 20px rgba(0, 0, 0, 0.32)) drop-shadow(-8px 12px 10px rgba(0, 0, 0, 0.18));
}

.share-panel {
  position: relative;
  min-height: 218px;
  padding: 0 36px 30px;
  border-radius: 0 16px 16px 0;
  background: var(--panel);
  box-shadow: 0 20px 48px rgba(114, 0, 0, 0.18);
}

.share-callout {
  position: absolute;
  right: 28px;
  top: -20px;
  margin: 0;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--white);
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.share-callout strong {
  color: var(--red);
}

.share-callout span {
  margin-left: 0.25em;
  color: #666;
}

.share-panel::before {
  content: "";
  position: absolute;
  right: 72px;
  top: 21px;
  width: 16px;
  height: 16px;
  background: var(--white);
  transform: rotate(45deg);
}

.tabs {
  display: flex;
  align-items: flex-end;
  min-height: 70px;
  margin-left: 0;
}

.tab {
  min-width: 160px;
  padding: 22px 24px 18px;
  border-radius: 16px 16px 0 0;
  background: rgba(170, 0, 0, 0.48);
  color: rgba(255, 255, 255, 0.68);
  font-weight: 900;
  text-align: center;
}

.tab.is-active {
  background: #ff1010;
  color: var(--white);
}

.share-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 12px;
  align-items: stretch;
  margin-top: 0;
  padding: 12px;
  border-radius: 4px;
  background: var(--white);
}

textarea {
  width: 100%;
  min-height: 62px;
  resize: none;
  border: 0;
  padding: 12px 14px;
  color: #333;
  font: inherit;
  font-weight: 700;
  line-height: 1.45;
  outline: none;
}

button {
  border: 0;
  border-radius: 4px;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16);
}

button:hover {
  filter: brightness(1.04);
}

button:active {
  transform: translateY(1px);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.16);
}

.campaign-text {
  margin: 18px 0 0;
  text-align: center;
  font-size: clamp(0.95rem, 1.55vw, 1.12rem);
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 800px) {
  .hero {
    background:
      radial-gradient(circle at 80% 18%, rgba(255, 102, 28, 0.7), transparent 28%),
      linear-gradient(108deg, #d70000 0%, #e90000 58%, #ff4310 100%);
  }

  .bg-word {
    color: rgba(255, 255, 255, 0.16);
  }

  .bg-word-com {
    left: 0;
    top: 18vh;
    font-size: clamp(3.2rem, 20vw, 6.2rem);
  }

  .bg-word-net {
    right: 0;
    top: 8vh;
    font-size: clamp(3rem, 18vw, 5.6rem);
  }

  .bg-word-site {
    right: 0;
    bottom: 2vh;
    font-size: clamp(3rem, 18vw, 5.8rem);
  }

  .hero-inner {
    display: grid;
    grid-template-areas:
      "brand"
      "image"
      "copy"
      "panel";
    grid-template-rows: auto minmax(140px, 28dvh) auto 1fr;
    row-gap: clamp(6px, 1.2dvh, 12px);
    align-content: stretch;
    width: min(100% - 12px, 620px);
    height: 100dvh;
    padding: 8px 0 10px;
  }

  .brand {
    grid-area: brand;
    justify-content: flex-start;
  }

  .brand-slot {
    width: min(142px, 38vw);
    min-height: 42px;
  }

  .brand-image {
    max-height: 48px;
  }

  .hero-copy {
    grid-area: copy;
    margin-top: 0;
  }

  .rank-row {
    margin-bottom: 20px;
  }

  .rank-slot {
    width: min(64vw, 250px);
    min-height: 46px;
  }

  .rank-image {
    max-height: 58px;
  }

  h1 {
    font-size: clamp(2.05rem, 10.6vw, 3.85rem);
    line-height: 1.16;
  }

  .share-area {
    display: contents;
  }

  .image-slot {
    grid-area: image;
    min-height: 100%;
    margin-top: -2px;
    transform: none;
  }

  .image-slot::after {
    left: 45%;
    bottom: 18px;
    width: min(190px, 50vw);
    height: 54px;
    filter: blur(10px);
    transform: translateX(-50%) rotate(-14deg);
  }

  .main-image {
    max-width: min(286px, 70vw);
    max-height: min(220px, 28dvh);
    filter: drop-shadow(-16px 20px 14px rgba(0, 0, 0, 0.3)) drop-shadow(-6px 8px 8px rgba(0, 0, 0, 0.16));
  }

  .share-panel {
    grid-area: panel;
    align-self: end;
    width: 100%;
    min-height: 0;
    margin-bottom: clamp(10px, 2.2dvh, 24px);
    border-radius: 14px;
    padding: 0 10px 12px;
  }

  .share-callout {
    right: 10px;
    top: 25px;
    padding: 7px 12px;
    font-size: 0.72rem;
  }

  .share-panel::before {
    right: 36px;
    top: 52px;
    width: 12px;
    height: 12px;
  }

  .tabs {
    min-height: 50px;
  }

  .tab {
    min-width: 0;
    width: min(112px, 40%);
    flex: 0 0 auto;
    padding: 12px 8px 10px;
    border-radius: 12px 12px 0 0;
    font-size: 0.82rem;
  }

  .share-form {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 0;
    padding: 11px;
  }

  textarea {
    min-height: 48px;
    padding: 11px 12px;
    font-size: 0.96rem;
  }

  button {
    min-height: 48px;
    font-size: 1.05rem;
  }

  .campaign-text {
    margin-top: 8px;
    font-size: 0.74rem;
    line-height: 1.35;
  }
}

@media (max-width: 460px) {
  .bg-word-com {
    left: -4vw;
    top: 20vh;
  }

  .bg-word-net {
    right: -4vw;
    top: 7vh;
  }

  .bg-word-site {
    right: -4vw;
    bottom: 2vh;
  }

  h1 {
    font-size: clamp(2rem, 10.4vw, 3.25rem);
  }

  .rank-row {
    margin-bottom: 18px;
  }

  .rank-slot {
    width: min(66vw, 230px);
  }

  .share-callout {
    right: 8px;
    top: 25px;
    padding: 6px 10px;
    font-size: 0.68rem;
  }

  .share-panel::before {
    display: block;
    right: 32px;
    top: 50px;
  }

  .tabs {
    min-height: 48px;
  }

  .tab {
    width: 104px;
  }

  .share-panel {
    margin-bottom: clamp(8px, 2dvh, 20px);
    padding-inline: 8px;
  }
}
