:root {
  --color-primary: #fd5d6a;
  --color-primary-pale: rgba(253, 93, 106, 0.2);
  --color-accent: #0cc3dc;
  --color-text: #1f1f1f;
  --color-text-body: #393939;
  --color-text-author: #717171;
  --color-text-summary: #717d7f;
  --color-text-muted: #858585;
  --color-text-dark: #404748;
  --color-bg-side: #fff5f6;
  --color-bg-pink: #ffe7e9;
  --color-bg-cream: #fffeee;
  --font-number: Futura, "Century Gothic", "Noto Sans JP", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg-side);
  color: var(--color-text);
  font-family: "Noto Sans JP", sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

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

a {
  text-decoration: none;
}

.page {
  max-width: 375px;
  margin: 0 auto;
  overflow-x: clip;
  background: #fff;
}

@media (min-width: 560px) {
  .page {
    zoom: calc(560 / 375);
  }
}

/* ---------- 共通 ---------- */

.section-number {
  display: block;
  color: var(--color-accent);
  font-family: var(--font-number);
  font-size: 40px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.heading__line {
  display: flex;
  align-items: center;
  height: 33px;
  padding: 0 8px;
  overflow: hidden;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 40px;
  white-space: nowrap;
}

.heading__line--end {
  align-self: flex-end;
}

.diamond {
  position: absolute;
  width: var(--size);
  height: var(--size);
  rotate: -45deg;
  pointer-events: none;
}

.diamond--outline {
  border: 2px solid var(--color-primary-pale);
}

.diamond--fill {
  background: var(--color-primary-pale);
}

.author {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-author);
  font-size: 14px;
  line-height: 22px;
}

.author::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url("https://palcy.jp/lp/2026/afa/images/icon_person.svg") center / contain no-repeat;
}

.info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.info__title {
  width: 100%;
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
}

.info__text {
  width: 100%;
  color: var(--color-text);
  font-size: 14px;
  line-height: 22px;
}

.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 206px;
  height: 44px;
  padding: 8px 8px 8px 16px;
  border: 2px solid var(--color-primary);
  border-radius: 100px;
  background: #fff;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
}

.button-outline::after {
  content: "";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: url("https://palcy.jp/lp/2026/afa/images/icon_arrow_right_pink.svg") center / contain no-repeat;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.step__number {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 100px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-number);
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.step__text {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

/* ---------- ヒーロー ---------- */

/* Figma の 375 x 547 を幅に合わせて拡縮する。--u は Figma の 1px */
.hero {
  --u: calc(100cqw / 375);
  position: relative;
  container-type: inline-size;
  aspect-ratio: 375 / 547;
  overflow: hidden;
  background: var(--color-primary);
}

.hero__panel,
.hero__chara {
  position: absolute;
  max-width: none;
}

.hero__panel {
  opacity: 0.8;
}

.hero__chara {
  object-fit: cover;
}

.hero__panel--1 { left: calc(var(--u) * 4); top: calc(var(--u) * 54); width: calc(var(--u) * 180.075); height: calc(var(--u) * 179.446); }
.hero__panel--2 { left: calc(var(--u) * 191.9); top: calc(var(--u) * 54); width: calc(var(--u) * 179.096); height: calc(var(--u) * 148.712); }
.hero__panel--3 { left: calc(var(--u) * 4); top: calc(var(--u) * 221.05); width: calc(var(--u) * 160.501); height: calc(var(--u) * 140.285); }
.hero__panel--4 { left: calc(var(--u) * 135.14); top: calc(var(--u) * 181.89); width: calc(var(--u) * 235.859); height: calc(var(--u) * 179.446); }
.hero__panel--5 { left: calc(var(--u) * 4); top: calc(var(--u) * 369.27); width: calc(var(--u) * 204.541); height: calc(var(--u) * 146.73); }
.hero__panel--6 { left: calc(var(--u) * 175.27); top: calc(var(--u) * 369.27); width: calc(var(--u) * 195.733); height: calc(var(--u) * 146.73); }

.hero__chara--1 { left: calc(var(--u) * -11); top: calc(var(--u) * 393); width: calc(var(--u) * 225.278); height: calc(var(--u) * 154); }
.hero__chara--2 { left: calc(var(--u) * 81); top: calc(var(--u) * 302); width: calc(var(--u) * 203); height: calc(var(--u) * 267); }
.hero__chara--3 { left: calc(var(--u) * 56); top: calc(var(--u) * 308); width: calc(var(--u) * 408); height: calc(var(--u) * 577); }

.hero__title {
  position: absolute;
  left: calc(var(--u) * 18);
  top: calc(var(--u) * 106);
  color: #fff;
  font-size: calc(var(--u) * 44);
  font-weight: 700;
  line-height: calc(var(--u) * 60);
  white-space: nowrap;
}

.hero__amp {
  font-size: calc(var(--u) * 36);
}

.hero__bar {
  position: absolute;
  inset: 0 0 auto;
  height: calc(var(--u) * 49);
  background: #fff;
}

.hero__logo-pixiv {
  position: absolute;
  left: calc(var(--u) * 16);
  top: calc(var(--u) * 3);
  width: calc(var(--u) * 100);
  height: calc(var(--u) * 43);
  object-fit: cover;
}

.hero__cross {
  position: absolute;
  left: calc(var(--u) * 114);
  top: calc(var(--u) * 17);
  color: var(--color-text-dark);
  font-size: calc(var(--u) * 16);
  font-weight: 700;
  line-height: calc(var(--u) * 16);
}

.hero__logo-encyclopedia {
  position: absolute;
  left: calc(var(--u) * 133);
  top: calc(var(--u) * 5);
  width: calc(var(--u) * 226);
  height: calc(var(--u) * 39);
  object-fit: cover;
}

/* ---------- Project Overview ---------- */

.overview {
  /* 下の Points にはみ出す飾り（.points__deco）より手前に出す */
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px 16px 32px;
  background: var(--color-bg-pink);
}

.overview__title,
.points__title {
  width: 100%;
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.overview__card {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text-body);
  font-size: 14px;
  line-height: 22px;
}

/* ---------- Highlights ---------- */

.points {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 16px 32px;
}

.points__deco {
  position: absolute;
  top: -66px;
  right: -4px;
  width: 79px;
  height: 79px;
}

.points__title,
.points__list {
  position: relative;
}

.points__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  list-style: none;
}

.points__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.points__number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding-top: 6px;
  background: url("https://palcy.jp/lp/2026/afa/images/balloon.svg") 2px 0 / 40px 40px no-repeat;
  color: #fff;
  font-family: var(--font-number);
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.points__card {
  flex: 1;
  padding: 16px;
  border: 2px solid var(--color-accent);
  border-radius: 4px;
  background: #fff;
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

/* ---------- 1: Kodansha titles ---------- */

.comics,
.encyclopedia,
.survey {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px 16px 32px;
}

.comics,
.survey {
  overflow: hidden;
}

/* 飾りのひし形より中身を手前に出す */
.comics > :not(.diamond),
.survey > :not(.diamond) {
  position: relative;
}

.comics {
  background: var(--color-bg-cream) url("https://palcy.jp/lp/2026/afa/images/bg_texture.png") 50% 0 / 106.03% 100% no-repeat;
}

.comics__lead {
  width: 100%;
  color: var(--color-text-body);
  font-size: 14px;
  line-height: 22px;
}

.comics__genres {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.genre {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.genre__title {
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}

.genre__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comic {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  overflow: hidden;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 12px 0 #ebead2;
}

.comic__image,
.article__image {
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 368;
  border-radius: 4px;
  object-fit: cover;
}

.comic__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comic__title {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

.comic__summary {
  position: relative;
}

.comic__summary-text {
  max-height: 66px;
  overflow: hidden;
  color: var(--color-text-summary);
  font-size: 14px;
  line-height: 22px;
}

.comic__summary::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 42px;
  height: 24px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

.comic__more {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
}

.comic__summary.is-open .comic__summary-text {
  max-height: none;
}

.comic__summary.is-open::after,
.comic__summary.is-open .comic__more {
  display: none;
}

.button-read {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 8px 8px 8px 16px;
  border-radius: 100px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

.button-read::after {
  content: "";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-left: auto;
  background: url("https://palcy.jp/lp/2026/afa/images/icon_arrow_right_white.svg") center / contain no-repeat;
}

/* ---------- 2: pixiv Encyclopedia ---------- */

.encyclopedia {
  background: #fff;
}

.encyclopedia__lead {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  color: var(--color-text);
  font-size: 14px;
  line-height: 22px;
}

.encyclopedia__note {
  color: var(--color-text-muted);
}

.articles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  padding: 0;
  list-style: none;
}

.article {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 12px 0 #e0e0e0;
}

.article__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.article__image {
  margin-bottom: 4px;
}

.article__title {
  min-height: 44px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

.button-article {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 8px 8px 8px 16px;
  border-radius: 100px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
}

.button-article::after {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-left: auto;
  background: url("https://palcy.jp/lp/2026/afa/images/icon_arrow_right_white_small.svg") center / contain no-repeat;
}

/* ---------- 3: Survey ---------- */

.survey {
  background: var(--color-bg-cream) url("https://palcy.jp/lp/2026/afa/images/bg_texture.png") 0 49.44% / 100% 320.08% no-repeat;
}

.survey__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.survey__eyebrow {
  width: 100%;
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.survey__heading-middle {
  margin-right: 41px;
}

.survey__lead {
  width: 100%;
  color: var(--color-text);
  font-size: 14px;
  line-height: 22px;
}

.survey__box {
  width: 100%;
  padding: 22px 14px;
  border: 2px dashed var(--color-primary);
  border-radius: 8px;
  background: #fff;
}

.survey__gifts {
  margin: 8px 0 0 32px;
  padding-left: 18px;
  color: var(--color-text);
  font-size: 12px;
  line-height: 18px;
}

.survey__novelties {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 99px;
  margin-top: 8px;
}

.survey__novelty {
  filter: drop-shadow(0 2px 12px rgba(109, 109, 109, 0.25));
}

.survey__novelty--sticker {
  width: 99px;
  height: 43px;
}

.survey__novelty--keyholder {
  width: 64px;
  height: 98.667px;
}

.step--second {
  margin-top: 16px;
}

.survey__note {
  margin: 8px 0 0 32px;
  color: var(--color-text);
  font-size: 12px;
  line-height: 18px;
}

.button-survey {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 56px;
  padding: 16px;
  border-radius: 100px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.button-survey::before {
  content: "";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: url("https://palcy.jp/lp/2026/afa/images/icon_pen.svg") center / contain no-repeat;
}

/* ---------- More from Kodansha and pixiv ---------- */

.partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px 16px 40px;
}

.partners__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  padding: 24px 16px;
  border: 2px dashed var(--color-primary);
  border-radius: 8px;
  background: var(--color-bg-cream);
}

.partners__text,
.partners__note {
  width: 279px;
  max-width: 100%;
  color: var(--color-text);
  font-size: 14px;
  line-height: 22px;
}

.partners__text {
  font-weight: 700;
}

.partners__apps {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.app-icon {
  position: relative;
  display: block;
  width: 80px;
  height: 80px;
  overflow: hidden;
}

.app-icon img {
  position: absolute;
}

.app-icon--palcy {
  border: 2px solid var(--color-accent);
  border-radius: 16px;
  background: #fff;
}

.app-icon--palcy img {
  left: 12.5%;
  top: 27.34%;
  width: 75%;
  height: 46.96%;
}

.app-icon--pixivcomic {
  background: url("https://palcy.jp/lp/2026/afa/images/app_pixivcomic_bg.svg") center / 100% 100% no-repeat;
}

.app-icon--pixivcomic img {
  left: 14.33%;
  top: 11.57%;
  width: 71.97%;
  height: 75.4%;
}

.credit {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 279px;
  max-width: 100%;
  height: 142px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}
