/* =========================================================
   MoeGen Online Arena
   漫画誌の「賞金つき新人賞・募集特集ページ」
   ========================================================= */

:root {
  --ink: #161122;
  --paper: #fffbf4;
  --paper-alt: #fffdf7;
  --white: #ffffff;
  --pink: #ff4d8d;
  --blue: #3b82f6;
  --yellow: #ffd23f;
  --green: #22c55e;
  --orange: #ff9e45;
  --light-blue: #eaf2ff;
  --light-pink: #ffeff5;
  --silver: #c9d4e4;
  --bronze: #e8a87c;

  /* 既存インライン参照との互換 */
  --tx: var(--ink);
  --tx-dim: #554c62;
  --tx-mute: #766d81;
  --gold: var(--yellow);
  --panel: var(--white);

  /* ステータス色 */
  --st-upcoming: var(--blue);
  --st-ongoing: var(--pink);
  --st-judging: var(--yellow);
  --st-announced: var(--green);
  --st-submit: var(--pink);
  --st-vote: var(--pink);
  --st-review: var(--yellow);
  --st-pub: var(--green);
  --st-soon: var(--blue);
  --st-end: var(--green);

  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 1220px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dots: radial-gradient(circle, rgba(22, 17, 34, 0.14) 1.2px, transparent 1.3px) 0 0 / 11px 11px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--pink) var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle, rgba(22, 17, 34, 0.08) 0.75px, transparent 0.85px),
    linear-gradient(90deg, transparent 0 49.8%, rgba(22, 17, 34, 0.035) 50%, transparent 50.2%);
  background-size: 7px 7px, 100% 100%;
  font-family: "M PLUS Rounded 1c", "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 12%, rgba(255, 210, 63, 0.13) 12.2% 13.2%, transparent 13.4% 100%),
    linear-gradient(-68deg, transparent 0 84%, rgba(59, 130, 246, 0.08) 84.2% 85.2%, transparent 85.4% 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}

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

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

h1,
h2,
h3,
.num,
.eyebrow,
.section-h,
.step-label {
  font-family: "Mochiy Pop One", "M PLUS Rounded 1c", "Noto Sans SC", sans-serif;
  font-feature-settings: "palt";
}

.num {
  letter-spacing: 0.02em;
}

.wrap {
  width: min(calc(100% - 40px), var(--maxw));
  margin-inline: auto;
}

::selection {
  color: var(--white);
  background: var(--pink);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* ============ ナビ ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 3px solid var(--ink);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  width: 102px;
  height: 34px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: stretch;
  gap: 19px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 7px 1px 5px;
  transition:
    color 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.nav-links a:hover {
  color: var(--pink);
  transform: translateY(-1px);
}

.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -5px;
  bottom: 5px;
  left: -5px;
  height: 7px;
  border-radius: 4px;
  background: var(--pink);
  opacity: 0.72;
  transform: rotate(-1.8deg);
}

.nav-right,
.auth-in,
.auth-out {
  display: flex;
  align-items: center;
}

.nav-right {
  gap: 12px;
  margin-left: auto;
}

.auth-out {
  gap: 9px;
}

.lang {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 5px 10px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--blue);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

.lang:hover,
.lang.open {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--blue);
}

.lang-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lang-menu,
.user-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  display: none;
  min-width: 160px;
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--ink);
}

.lang.open .lang-menu,
.user.open .user-menu {
  display: block;
  animation: menu-pop 280ms var(--ease-back) both;
}

.lang-opt,
.user-opt {
  padding: 10px 14px;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 150ms var(--ease-out),
    padding-left 150ms var(--ease-out);
}

.lang-opt:last-child,
.user-opt:last-child {
  border-bottom: 0;
}

.lang-opt:hover,
.lang-opt.active,
.user-opt:hover {
  padding-left: 18px;
  background: var(--light-pink);
}

.lang-opt.active {
  box-shadow: inset 6px 0 0 var(--pink);
}

.user {
  position: relative;
}

.avatar {
  display: block;
  width: 38px;
  height: 38px;
  background: var(--yellow) url("img/creator_sample1.png") center / cover no-repeat;
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--pink);
  cursor: pointer;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

.avatar:hover {
  transform: rotate(-4deg) translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--pink);
}

/* ============ ボタン / ステッカー ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 140ms var(--ease-out),
    box-shadow 140ms var(--ease-out),
    background-color 140ms var(--ease-out),
    color 140ms var(--ease-out);
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-pink {
  color: var(--white);
  background: var(--pink);
}

.btn-pink:hover {
  background: #f2387c;
}

.btn-gold {
  color: var(--ink);
  background: var(--yellow);
}

.btn-gold:hover {
  background: #ffdc63;
}

.btn-ghost {
  color: var(--ink);
  background: var(--white);
}

.btn-ghost:hover {
  background: var(--light-blue);
}

.btn-sm {
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 11px;
  font-size: 12.5px;
}

.btn-block {
  width: 100%;
}

.btn.is-disabled {
  color: #6c6474;
  background: #e9e5eb;
  box-shadow: 2px 2px 0 #8e8596;
  cursor: not-allowed;
  pointer-events: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  color: var(--white);
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.tag::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: currentColor;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.tag.st-upcoming,
.tag.st-soon {
  background: var(--st-upcoming);
}

.tag.st-ongoing,
.tag.st-submit,
.tag.st-vote {
  background: var(--st-ongoing);
}

.tag.st-judging,
.tag.st-review {
  color: var(--ink);
  background: var(--st-judging);
}

.tag.st-announced,
.tag.st-pub,
.tag.st-end {
  background: var(--st-announced);
}

/* ============ 一覧ページ ============ */

.page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 260px;
  margin-top: 18px;
  padding: 47px 52px 42px;
  background:
    var(--dots),
    linear-gradient(118deg, var(--paper-alt) 0 62%, var(--light-blue) 62% 100%);
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: 8px 8px 0 var(--yellow);
}

.page-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -52px;
  left: -48px;
  width: 240px;
  height: 190px;
  background:
    linear-gradient(71deg, transparent 44%, var(--pink) 45% 50%, transparent 51%),
    linear-gradient(58deg, transparent 44%, var(--blue) 45% 50%, transparent 51%),
    linear-gradient(83deg, transparent 44%, var(--yellow) 45% 50%, transparent 51%);
  transform: rotate(-8deg);
  transform-origin: bottom right;
}

.page-head::after {
  content: "ENTRY OPEN";
  position: absolute;
  right: -24px;
  bottom: 29px;
  padding: 7px 38px;
  color: var(--white);
  background: var(--ink);
  border-block: 2px solid var(--ink);
  font-family: "Mochiy Pop One", sans-serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  transform: rotate(-4deg);
  animation: print-breathe 6s ease-in-out infinite;
}

.page-head .eyebrow,
.hero-left .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 4px 14px;
  color: var(--white);
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 11px;
  letter-spacing: 0.12em;
  transform: rotate(-1.5deg);
}

.page-head h1 {
  max-width: 770px;
  margin: 20px 0 9px;
  font-size: clamp(38px, 5.3vw, 66px);
  line-height: 1.15;
  letter-spacing: 0.035em;
}

.page-head p {
  max-width: 780px;
  margin: 0;
  color: #4d4557;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.85;
}

.page-head .eyebrow {
  animation: sticker-in 470ms 80ms var(--ease-back) both;
}

.page-head h1 {
  animation: headline-in 620ms 170ms var(--ease-out) both;
}

.page-head p {
  animation: copy-in 520ms 290ms var(--ease-out) both;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  padding: 34px 0 28px;
}

.chip,
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px 16px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    background-color 180ms var(--ease-out),
    color 180ms var(--ease-out);
}

.chip:hover,
.tab:hover {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 3px 3px 0 var(--yellow);
}

.chip.active,
.tab.active {
  color: var(--white);
  background: var(--pink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-1deg);
  animation: chip-snap 430ms var(--ease-back) both;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 27px;
  padding-bottom: 54px;
}

.card {
  --card-shadow: var(--blue);
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  color: var(--ink);
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--card-shadow);
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
  animation: panel-in 580ms var(--ease-out) both;
}

/* 募集特集号の通し番号ステッカー */
.card::before {
  content: "ENTRY";
  position: absolute;
  z-index: 8;
  top: 14px;
  right: 13px;
  padding: 4px 9px;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--yellow);
  font-family: "Mochiy Pop One", sans-serif;
  font-size: 9px;
  letter-spacing: 0.08em;
  transform: rotate(2.5deg);
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

.card:nth-child(1)::before {
  content: "ENTRY 01";
}

.card:nth-child(2)::before {
  content: "ENTRY 02";
}

.card:nth-child(3)::before {
  content: "ENTRY 03";
}

.card:nth-child(4)::before {
  content: "ENTRY 04";
}

.card:nth-child(5)::before {
  content: "ENTRY 05";
}

.card:nth-child(6)::before {
  content: "ENTRY 06";
}

.card:nth-child(4n + 1) {
  --card-shadow: var(--blue);
  animation-delay: 90ms;
}

.card:nth-child(4n + 2) {
  --card-shadow: var(--pink);
  animation-delay: 150ms;
}

.card:nth-child(4n + 3) {
  --card-shadow: var(--yellow);
  animation-delay: 210ms;
}

.card:nth-child(4n) {
  --card-shadow: var(--green);
  animation-delay: 270ms;
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--card-shadow);
}

.card:hover::before {
  box-shadow: 4px 4px 0 var(--pink);
  transform: rotate(-1deg) translate(-1px, -1px);
}

.card:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--card-shadow);
}

.card.is-hidden {
  display: none;
}

.cover {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 224px;
  overflow: hidden;
  align-items: flex-end;
  padding: 22px;
  background-color: var(--light-blue);
  background-position: center;
  background-size: cover;
  border-bottom: 3px solid var(--ink);
  transition: background-position 520ms var(--ease-out);
}

.card:hover .cover {
  background-position: center 42%;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(22, 17, 34, 0.04) 0 36%, rgba(22, 17, 34, 0.42) 100%);
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.32) 1.2px, transparent 1.35px) 0 0 / 10px 10px;
  mix-blend-mode: screen;
}

.cover > * {
  position: relative;
  z-index: 2;
}

.cover .cover-tag {
  position: absolute;
  top: 15px;
  left: 15px;
}

.cover .cover-title {
  display: inline;
  padding: 7px 12px 9px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-decoration-break: clone;
  box-shadow: 4px 4px 0 var(--yellow);
  font-family: "Mochiy Pop One", "M PLUS Rounded 1c", sans-serif;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.8;
  letter-spacing: 0.025em;
  transform: rotate(-1.5deg);
  transition: transform 220ms var(--ease-out);
}

.card:hover .cover-title {
  transform: rotate(0deg) translateY(-2px);
}

.card-body {
  display: flex;
  min-height: 224px;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 18px;
}

.card-body h3 {
  margin: 0 0 13px;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.025em;
}

.reward-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin-top: auto;
  padding: 12px 0;
  border-top: 2px dashed var(--ink);
  border-bottom: 2px dashed var(--ink);
}

.reward-row .amt {
  color: var(--pink);
  font-size: 27px;
  line-height: 1;
}

.reward-row .amt-label {
  font-size: 12px;
  font-weight: 800;
}

.points-back {
  margin-left: auto;
  padding: 2px 8px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding-top: 16px;
}

.card-meta .time {
  font-family: "Mochiy Pop One", sans-serif;
  font-size: 11px;
  letter-spacing: 0.03em;
}

/* 実作品表紙 */
.cv-a {
  background-image: url("img/comic_sample1.webp");
}

.cv-b {
  background-image: url("img/comic_sample2.webp");
}

.cv-c {
  background-image: url("img/comic_sample3.jpg");
}

.cv-d {
  background-image: url("img/comic_sample4.webp");
}

.cv-e {
  background-image: url("img/comic_sample5.webp");
}

.cv-f {
  background-image: url("img/comic_sample6.webp");
}

.mine-empty,
.empty-state {
  width: 100%;
  margin: 8px 0 36px;
  padding: 30px 24px;
  color: var(--ink);
  background:
    var(--dots),
    var(--light-blue);
  border: 3px dashed var(--ink);
  border-radius: 14px;
  font-weight: 800;
  text-align: center;
}

/* ============ 詳細 Hero ============ */

.detail .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 18px;
  padding: 24px 30px 38px;
  background:
    radial-gradient(circle at 32% 28%, #fffdf7 0, #fff7c9 34%, #ffd23f 72%, #ff9e45 100%);
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: 8px 8px 0 var(--pink);
}

.detail .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle, rgba(22, 17, 34, 0.14) 1.2px, transparent 1.3px) 0 0 / 11px 11px;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 64%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 64%);
  animation: tone-breathe 7s ease-in-out infinite;
}

.detail .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -96px;
  right: -82px;
  width: 330px;
  height: 270px;
  background:
    linear-gradient(72deg, transparent 47%, var(--blue) 48% 51%, transparent 52%),
    linear-gradient(59deg, transparent 46%, var(--pink) 47% 50%, transparent 51%),
    linear-gradient(84deg, transparent 46%, var(--white) 47% 50%, transparent 51%),
    linear-gradient(39deg, transparent 46%, var(--ink) 47% 49%, transparent 50%);
  transform: rotate(12deg);
  transform-origin: bottom left;
  animation: rays-drift 8s ease-in-out infinite;
}

#backLink {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 11px;
  color: var(--ink) !important;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 12px !important;
  font-weight: 800;
  transition:
    transform 150ms var(--ease-out),
    box-shadow 150ms var(--ease-out);
}

#backLink:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: 42px;
  align-items: center;
}

.hero-left {
  min-width: 0;
}

.hero-left .eyebrow {
  animation: sticker-in 470ms 60ms var(--ease-back) both;
}

.hero-left h1 {
  max-width: 680px;
  margin: 22px 0 13px;
  font-size: clamp(38px, 4.2vw, 54px);
  line-height: 1.33;
  letter-spacing: 0.025em;
  animation: headline-in 640ms 150ms var(--ease-out) both;
}

.hero-left h1 .em {
  position: relative;
  z-index: 0;
  color: var(--pink);
  white-space: nowrap;
}

.hero-left h1 .em::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -4px;
  bottom: 3px;
  left: -4px;
  height: 10px;
  background: var(--white);
  border-radius: 5px;
  transform: rotate(-2deg);
}

.hero-note {
  max-width: 650px;
  margin: 0 0 19px;
  color: #413a49;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  animation: copy-in 520ms 280ms var(--ease-out) both;
}

.hero-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-sub span {
  padding: 4px 10px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.hero-prize {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 3px minmax(150px, 0.6fr);
  gap: 18px;
  align-items: stretch;
  max-width: 650px;
  margin: 0 0 19px;
  padding: 17px 20px;
  background:
    radial-gradient(circle, rgba(255, 210, 63, 0.22) 1.1px, transparent 1.2px) 0 0 / 10px 10px,
    var(--white);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--blue);
  animation: panel-in 560ms 360ms var(--ease-out) both;
}

.hero-prize .big,
.hero-prize .side {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.hero-prize .k {
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 800;
}

.hero-prize .big .v {
  color: var(--pink);
  font-size: clamp(36px, 4vw, 50px);
  line-height: 1.25;
}

.hero-prize .split {
  width: 3px;
  background: var(--ink);
  transform: rotate(3deg);
}

.hero-prize .side .v {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  max-width: 680px;
  animation: copy-in 520ms 460ms var(--ease-out) both;
}

.hero-countdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  margin-top: 20px;
  padding: 7px 17px 7px 47px;
  color: var(--white);
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: "Mochiy Pop One", sans-serif;
  font-size: 12px;
  letter-spacing: 0.035em;
  transform: rotate(-0.8deg);
  animation: countdown-in 520ms 550ms var(--ease-back) both;
}

.hero-countdown::before {
  content: "";
  position: absolute;
  left: 14px;
  width: 23px;
  height: 23px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7v5l3 2M7 3.5 4.5 6M17 3.5 19.5 6'/%3E%3C/svg%3E");
}

/* KV: 白いコマ + 集中線 + 浮遊する小コマ */
.kv {
  position: relative;
  isolation: isolate;
  min-height: 455px;
  overflow: hidden;
  background:
    repeating-conic-gradient(from -8deg at 50% 48%, transparent 0 8deg, rgba(22, 17, 34, 0.1) 8.3deg 9.2deg, transparent 9.5deg 17deg),
    radial-gradient(circle at 50% 48%, var(--white) 0 19%, var(--light-pink) 20% 46%, var(--white) 47% 100%);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 7px 7px 0 var(--green);
  animation: panel-in 690ms 260ms var(--ease-out) both;
}

.kv::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, rgba(22, 17, 34, 0.14) 1.2px, transparent 1.3px) 0 0 / 11px 11px;
  -webkit-mask-image: radial-gradient(circle at center, transparent 0 33%, #000 70%);
  mask-image: radial-gradient(circle at center, transparent 0 33%, #000 70%);
}

.kv .trophy {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 260px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.kv .trophy .ring {
  display: grid;
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
  place-items: center;
  background: var(--yellow);
  border: 3px dashed var(--ink);
  border-radius: 50%;
  box-shadow: 5px 5px 0 var(--ink);
  animation: ring-turn 18s linear infinite;
}

.cup {
  display: block;
  width: 90px;
  height: 90px;
  font-size: 0;
  animation: ring-counter 18s linear infinite;
}

.cup::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='none' stroke='%23161122' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M31 18h34v13c0 22-8 34-17 34S31 53 31 31V18Z' fill='%23FFD23F'/%3E%3Cpath d='M31 26H17v7c0 14 7 22 19 24M65 26h14v7c0 14-7 22-19 24M48 65v12M34 80h28M30 88h36'/%3E%3C/svg%3E");
}

.kv .cap,
.kv .cap2 {
  display: inline-block;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--pink);
  font-weight: 800;
}

.kv .cap {
  padding: 5px 13px;
  font-size: 14px;
  transform: rotate(-2deg);
}

.kv .cap2 {
  margin-top: 9px;
  padding: 5px 14px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 27px;
  transform: rotate(1deg);
}

.kv .float-card {
  position: absolute;
  z-index: 2;
  width: 118px;
  height: 157px;
  background-color: var(--light-blue);
  background-position: center;
  background-size: cover;
  border: 3px solid var(--ink);
  border-radius: 6px;
}

.kv .fc1 {
  top: 37px;
  left: 31px;
  background-image: url("img/comic_sample2.webp");
  box-shadow: 5px 5px 0 var(--blue);
  transform: rotate(-8deg);
  animation: float-one 5.2s ease-in-out infinite;
}

.kv .fc2 {
  right: 30px;
  bottom: 35px;
  background-image: url("img/comic_sample5.webp");
  box-shadow: 5px 5px 0 var(--pink);
  transform: rotate(7deg);
  animation: float-two 6.1s -1.7s ease-in-out infinite;
}

.kv.has-img {
  min-height: 455px;
  background: var(--white);
}

.kv.has-img::before {
  display: none;
}

.kv-img {
  width: 100%;
  height: 100%;
  min-height: 455px;
  object-fit: cover;
}

/* ============ 情報カード / セクション見出し ============ */

.info-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 40px 0 20px;
}

.info-card {
  --info-color: var(--blue);
  min-height: 190px;
  padding: 22px 19px 18px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--info-color);
  transition:
    transform 210ms var(--ease-out),
    box-shadow 210ms var(--ease-out);
  animation: panel-in 560ms var(--ease-out) both;
}

.info-card:nth-child(1) {
  --info-color: var(--blue);
  animation-delay: 80ms;
}

.info-card:nth-child(2) {
  --info-color: var(--pink);
  animation-delay: 140ms;
}

.info-card:nth-child(3) {
  --info-color: var(--yellow);
  animation-delay: 200ms;
}

.info-card:nth-child(4) {
  --info-color: var(--green);
  animation-delay: 260ms;
}

.info-card:hover {
  transform: translate(-2px, -2px) rotate(-0.7deg);
  box-shadow: 7px 7px 0 var(--info-color);
}

.ic-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 13px;
  font-size: 0;
}

.ic-icon::before {
  content: "";
  display: block;
  width: 52px;
  height: 52px;
  background-color: var(--info-color);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 31px 31px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
}

.info-card:nth-child(1) .ic-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23161122' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 4C9 4 4 8.7 4 15s5.2 12 12 12h2.2c2 0 3.2-2.2 2-3.8-.9-1.2-.2-3 1.5-3h1.1c3 0 5.2-2.5 5.2-5.5C28 8.8 22.6 4 16 4Z' fill='%23fff'/%3E%3Ccircle cx='10' cy='13' r='1.5'/%3E%3Ccircle cx='15' cy='9' r='1.5'/%3E%3Ccircle cx='21' cy='11' r='1.5'/%3E%3C/svg%3E");
}

.info-card:nth-child(2) .ic-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23161122' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 26S5 20 5 12.5C5 8.5 8 6 11.4 6c2.2 0 3.8 1.2 4.6 2.7C16.8 7.2 18.4 6 20.6 6 24 6 27 8.5 27 12.5 27 20 16 26 16 26Z' fill='%23fff'/%3E%3C/svg%3E");
}

.info-card:nth-child(3) .ic-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23161122' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='16' cy='9' rx='10' ry='4.5' fill='%23fff'/%3E%3Cpath d='M6 9v7c0 2.5 4.5 4.5 10 4.5s10-2 10-4.5V9M6 16v7c0 2.5 4.5 4.5 10 4.5s10-2 10-4.5v-7'/%3E%3C/svg%3E");
}

.info-card:nth-child(4) .ic-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23161122' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13h22v14H5zM3.5 9h25v5h-25zM16 9v18' fill='%23fff'/%3E%3Cpath d='M16 9c-3-5-8-5-8-1 0 2 3 2 8 1Zm0 0c3-5 8-5 8-1 0 2-3 2-8 1Z'/%3E%3C/svg%3E");
}

.ic-t {
  margin-bottom: 2px;
  font-family: "Mochiy Pop One", sans-serif;
  font-size: 16px;
  letter-spacing: 0.025em;
}

.ic-d {
  color: #5c5365;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.65;
}

.section {
  position: relative;
  padding: 54px 0 8px;
}

.section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 28px;
  right: calc(50% - 50vw);
  bottom: -18px;
  left: calc(50% - 50vw);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: var(--paper-alt);
}

/* 雑誌印刷の見当合わせを思わせる4色マーク */
.section::after {
  content: "";
  position: absolute;
  top: 43px;
  right: 1px;
  width: 92px;
  height: 14px;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--pink) 25% 50%, var(--yellow) 50% 75%, var(--green) 75% 100%);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(1.5deg);
}

.section:nth-of-type(even)::before {
  background:
    radial-gradient(circle, rgba(22, 17, 34, 0.11) 1.1px, transparent 1.2px) 0 0 / 11px 11px,
    var(--light-blue);
}

.section:nth-of-type(odd)::before {
  background:
    radial-gradient(circle, rgba(22, 17, 34, 0.08) 1.1px, transparent 1.2px) 0 0 / 11px 11px,
    var(--light-pink);
}

.section-h {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 23px;
}

.section-h .bar {
  width: 14px;
  height: 42px;
  flex: 0 0 auto;
  background: var(--pink);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--yellow);
  transform: skew(-7deg) rotate(1deg);
}

.section-h h2 {
  position: relative;
  margin: 0;
  font-size: clamp(24px, 3vw, 33px);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.section-h h2::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -12px;
  bottom: 1px;
  left: -4px;
  height: 9px;
  background: var(--yellow);
  transform: rotate(-1.2deg);
}

/* ============ 紹介 / フロー / 賞金 ============ */

.intro-box {
  padding: 28px 32px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 7px 7px 0 var(--blue);
  font-size: 15.5px;
  line-height: 1.9;
}

.intro-box p {
  margin: 0 0 17px;
}

.intro-box p:last-child {
  margin-bottom: 0;
}

.intro-box strong {
  background: linear-gradient(transparent 61%, rgba(255, 210, 63, 0.75) 61%);
}

.intro-img {
  width: 100%;
  max-height: 330px;
  margin: 0 0 24px;
  object-fit: cover;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 12px;
}

.intro-box ul,
.acc-inner ul {
  padding-left: 24px;
}

.intro-box li,
.acc-inner li {
  margin: 7px 0;
}

.intro-box li::marker,
.acc-inner li::marker {
  color: var(--pink);
  font-weight: 900;
}

.link-toggle {
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.flow-step {
  --flow-color: var(--blue);
  position: relative;
  min-height: 154px;
  padding: 18px 12px 14px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--flow-color);
  text-align: center;
}

.flow-step:nth-child(4n + 1) {
  --flow-color: var(--blue);
}

.flow-step:nth-child(4n + 2) {
  --flow-color: var(--pink);
}

.flow-step:nth-child(4n + 3) {
  --flow-color: var(--yellow);
}

.flow-step:nth-child(4n) {
  --flow-color: var(--green);
}

.flow-step .n {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  place-items: center;
  background: var(--flow-color);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 22px;
  line-height: 1;
}

.flow-step:nth-child(2) .n {
  color: var(--white);
}

.flow-step .t {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 61px;
  right: -26px;
  width: 31px;
  height: 22px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 24' fill='none' stroke='%23161122' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 13c10-3 20-3 32 0M27 5l8 8-9 7'/%3E%3C/svg%3E");
  transform: rotate(-4deg);
}

.reward-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: start;
}

.pool-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 265px;
  padding: 33px 28px;
  background:
    radial-gradient(circle, rgba(22, 17, 34, 0.14) 1.2px, transparent 1.3px) 0 0 / 11px 11px,
    var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 8px 8px 0 var(--pink);
}

.pool-card::after {
  content: "PRIZE!";
  position: absolute;
  right: -22px;
  bottom: 22px;
  padding: 4px 30px;
  color: var(--white);
  background: var(--pink);
  border: 2px solid var(--ink);
  font-family: "Mochiy Pop One", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  transform: rotate(-8deg);
}

.pool-card .k {
  display: inline-block;
  padding: 3px 10px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.pool-card .v {
  margin: 22px 0 10px;
  font-size: clamp(43px, 5vw, 61px);
  line-height: 1.15;
  letter-spacing: 0.015em;
}

.pool-card .sub {
  max-width: 260px;
  font-weight: 800;
}

.award-table {
  display: grid;
  gap: 12px;
}

.award-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 76px;
  padding: 12px 17px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--blue);
}

.award-row:nth-child(2) {
  box-shadow: 4px 4px 0 var(--pink);
}

.award-row:nth-child(3) {
  box-shadow: 4px 4px 0 var(--green);
}

.medal {
  display: block;
  width: 38px;
  height: 38px;
  font-size: 0;
}

.medal::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--ink);
}

.award-row:nth-child(2) .medal::before {
  background: var(--silver);
}

.award-row:nth-child(3) .medal::before {
  background: var(--bronze);
}

.award-row .name {
  font-family: "Mochiy Pop One", sans-serif;
  font-size: 14px;
}

.award-row .cnt {
  color: #6e6576;
  font-size: 12px;
  font-weight: 700;
}

.award-row .money {
  color: var(--pink);
  font-size: 18px;
  text-align: right;
}

.points-back-note {
  margin-top: 15px;
  padding: 14px 16px;
  background:
    radial-gradient(circle, rgba(22, 17, 34, 0.1) 1px, transparent 1.1px) 0 0 / 10px 10px,
    var(--light-pink);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--yellow);
  font-size: 13px;
  font-weight: 700;
}

/* ============ 作品 ============ */

.works-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tab {
  min-height: 38px;
  padding: 6px 15px;
  font-size: 12.5px;
}

.works-bar .spacer {
  flex: 1;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: panel-switch 460ms var(--ease-out) both;
}

.works-grid,
.winner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.work {
  --work-color: var(--blue);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--work-color);
  cursor: pointer;
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

.work:nth-child(4n + 1) {
  --work-color: var(--blue);
}

.work:nth-child(4n + 2) {
  --work-color: var(--pink);
}

.work:nth-child(4n + 3) {
  --work-color: var(--yellow);
}

.work:nth-child(4n) {
  --work-color: var(--green);
}

.work:hover {
  transform: translate(-3px, -3px) rotate(-0.45deg);
  box-shadow: 8px 8px 0 var(--work-color);
}

/* 1位は通常グリッドを破る「巻頭受賞作」コマ */
#rankBody .work:first-child {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(210px, 0.84fr);
  box-shadow: 7px 7px 0 var(--yellow);
}

#rankBody .work:first-child .w-cover {
  min-height: 420px;
  aspect-ratio: auto;
  border-right: 2px solid var(--ink);
  border-bottom: 0;
}

#rankBody .work:first-child .w-body {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  background:
    radial-gradient(circle, rgba(22, 17, 34, 0.11) 1.1px, transparent 1.2px) 0 0 / 11px 11px,
    var(--white);
}

#rankBody .work:first-child .w-author {
  font-size: 13px;
}

#rankBody .work:first-child .w-title {
  min-height: 0;
  margin-block: 12px 22px;
  font-size: 24px;
  line-height: 1.65;
}

#rankBody .work:first-child .w-foot {
  padding-top: 16px;
}

.w-cover,
.wc,
.mc,
.pw {
  background-color: var(--light-blue);
  background-position: center;
  background-size: cover;
}

.w-cover {
  position: relative;
  isolation: isolate;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}

.w-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.23) 1.1px, transparent 1.2px) 0 0 / 10px 10px;
  mix-blend-mode: screen;
}

.rank {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: "Mochiy Pop One", sans-serif;
  font-size: 10px;
  transform: rotate(-3deg);
  zoom: 1.5;
}

.work:nth-child(1) .rank.top {
  background: var(--yellow);
}

.work:nth-child(2) .rank.top {
  background: var(--silver);
}

.work:nth-child(3) .rank.top {
  background: var(--bronze);
}

.w-body {
  padding: 14px 15px 15px;
}

.w-author,
.wi .wa {
  color: var(--pink);
  font-size: 11px;
  font-weight: 800;
}

.w-title,
.wi .wt {
  min-height: 47px;
  margin: 4px 0 11px;
  font-family: "Mochiy Pop One", sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

.w-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 2px dashed var(--ink);
}

.like-count {
  position: relative;
  display: inline-block;
  min-height: 21px;
  padding-left: 0;
  color: var(--pink);
  font-family: "Mochiy Pop One", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

/* app.jsの文字ハートを同位置のモノラインSVGで上書き */
.like-count::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -2px;
  width: 18px;
  height: 18px;
  background: var(--white) center / 16px 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF4D8D' stroke='%23161122' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20S3.5 15.5 3.5 9.5A4.5 4.5 0 0 1 12 7.4a4.5 4.5 0 0 1 8.5 2.1C20.5 15.5 12 20 12 20Z'/%3E%3C/svg%3E");
  transform: translateY(-50%);
}

.w-foot .view {
  padding: 2px 7px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.award-group {
  margin-bottom: 30px;
}

.ag-head {
  position: relative;
  min-height: 52px;
  margin-bottom: 16px;
  padding: 10px 15px 10px 55px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--yellow);
  font-family: "Mochiy Pop One", sans-serif;
  font-size: 14px;
}

/* app.jsが先頭に出す絵文字を、紙面色のバッジで視覚的に置換 */
.ag-head::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 9px;
  left: 52px;
  width: 24px;
  height: 32px;
  background: var(--white);
}

.ag-head::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 10px;
  width: 32px;
  height: 32px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--ink);
}

.award-group:nth-child(2) .ag-head::after {
  background: var(--silver);
}

.award-group:nth-child(3) .ag-head::after {
  background: var(--bronze);
}

.ag-head .money {
  float: right;
  color: var(--pink);
}

.winner {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  min-height: 145px;
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--blue);
}

.winner.gold {
  grid-column: span 2;
  grid-template-columns: 160px minmax(0, 1fr);
  box-shadow: 6px 6px 0 var(--yellow);
}

.winner .wc {
  min-height: 145px;
  border-right: 2px solid var(--ink);
}

.winner .wi {
  padding: 16px;
}

.winner .wm {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 13px;
}

.mine-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto auto auto;
  gap: 15px;
  align-items: center;
  padding: 13px 15px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--blue);
}

.mine-row .mc {
  width: 62px;
  aspect-ratio: 3 / 4;
  border: 2px solid var(--ink);
  border-radius: 6px;
}

.mine-row .mt {
  font-family: "Mochiy Pop One", sans-serif;
  font-size: 13px;
}

.mine-row .ms {
  color: #665d6e;
  font-size: 11px;
  font-weight: 700;
}

.mine-row .rv {
  position: relative;
  color: var(--pink) !important;
}

.mine-row .rv::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -2px;
  width: 18px;
  height: 18px;
  background: var(--white) center / 16px 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF4D8D' stroke='%23161122' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20S3.5 15.5 3.5 9.5A4.5 4.5 0 0 1 12 7.4a4.5 4.5 0 0 1 8.5 2.1C20.5 15.5 12 20 12 20Z'/%3E%3C/svg%3E");
  transform: translateY(-50%);
}

/* ============ アコーディオン ============ */

#accordion {
  display: grid;
  gap: 12px;
}

.acc-item {
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--blue);
}

.acc-item:nth-child(4n + 2) {
  box-shadow: 4px 4px 0 var(--pink);
}

.acc-item:nth-child(4n + 3) {
  box-shadow: 4px 4px 0 var(--yellow);
}

.acc-item:nth-child(4n) {
  box-shadow: 4px 4px 0 var(--green);
}

.acc-head {
  position: relative;
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 52px 14px 18px;
  font-family: "Mochiy Pop One", sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out);
}

.acc-head:hover,
.acc-item.open .acc-head {
  background: var(--light-pink);
}

.acc-head .arrow {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 25px;
  height: 25px;
  color: transparent;
  background: var(--yellow) center / 15px 15px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23161122' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7 5 5 5-5'/%3E%3C/svg%3E");
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: transform 200ms var(--ease-out);
}

.acc-item.open .acc-head .arrow {
  transform: translateY(-50%) rotate(180deg);
}

.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  border-top: 0 solid var(--ink);
  transition:
    grid-template-rows 420ms var(--ease-out),
    border-top-width 120ms var(--ease-out);
}

.acc-item.open .acc-body {
  grid-template-rows: 1fr;
  border-top-width: 2px;
}

.acc-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: #4e4657;
  font-size: 14px;
  line-height: 1.9;
}

.acc-item.open .acc-inner {
  padding-block: 15px 20px;
}

/* ============ フッター / モバイルCTA ============ */

.foot {
  margin-top: 58px;
  padding: 24px 20px 32px;
  border-top: 3px solid var(--ink);
  color: #62596b;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.mobile-cta {
  display: none;
}

/* ============ 投稿モーダル ============ */

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  overflow-y: auto;
  padding: 32px 18px;
  place-items: center;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.2) 1.2px, transparent 1.3px) 0 0 / 11px 11px,
    rgba(22, 17, 34, 0.82);
}

.modal-mask.open {
  display: grid;
}

.modal {
  width: min(100%, 690px);
  max-height: calc(100vh - 64px);
  overflow: hidden;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 8px 8px 0 var(--pink);
  animation: modal-pop 500ms var(--ease-back) both;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  color: var(--white);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 1.1px, transparent 1.2px) 0 0 / 10px 10px,
    var(--pink);
  border-bottom: 3px solid var(--ink);
}

.modal-head h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0.025em;
}

.modal-head .x {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

.modal-head .x:hover {
  transform: rotate(8deg) translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.modal-body {
  max-height: calc(100vh - 240px);
  overflow-y: auto;
  padding: 22px 23px;
}

.modal-body .hint {
  margin: 0 0 20px;
  color: #5f5668;
  font-size: 13px;
  font-weight: 700;
}

.step-label {
  margin: 21px 0 11px;
  font-size: 15px;
  letter-spacing: 0.025em;
}

.field {
  margin-bottom: 17px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field textarea,
.field select,
.social-row input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 11px;
  outline: 0;
  transition:
    background-color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.social-row input:focus {
  background: var(--white);
  box-shadow: 4px 4px 0 var(--blue);
}

.pick-works {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pick-works .pw {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 9px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    border-color 180ms var(--ease-out);
}

.pick-works .pw:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--yellow);
}

.pick-works .pw.sel {
  border: 3px solid var(--pink);
  box-shadow: 5px 5px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.pick-works .pw.sel::after {
  content: "✓";
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--white);
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--ink);
  font-weight: 900;
}

.echo-box {
  margin-top: 13px;
  padding: 13px 15px;
  background:
    radial-gradient(circle, rgba(22, 17, 34, 0.1) 1px, transparent 1.1px) 0 0 / 10px 10px,
    var(--light-blue);
  border: 2px solid var(--ink);
  border-radius: 12px;
}

.echo-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 2px dashed var(--ink);
}

.echo-row:last-of-type {
  border-bottom: 0;
}

.echo-k {
  font-size: 12px;
  font-weight: 800;
}

.echo-v {
  color: #514958;
  font-size: 13px;
}

.echo-hint {
  margin-top: 7px;
  color: #6c6374;
  font-size: 11px;
}

.modal-notice {
  position: relative;
  margin-top: 14px;
  padding: 13px 14px 13px 47px;
  color: var(--ink);
  background:
    radial-gradient(circle, rgba(22, 17, 34, 0.11) 1px, transparent 1.1px) 0 0 / 10px 10px,
    var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 11px;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.65;
}

.modal-notice::before {
  content: "!";
  position: absolute;
  top: 50%;
  left: 14px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: "Mochiy Pop One", sans-serif;
  font-size: 12px;
  transform: translateY(-50%);
}

/* 既存HTMLが参照する未定義キーを、フックを変えず紙面側で補完 */
.modal-notice {
  font-size: 0;
}

.modal-notice::after {
  font-size: 12.5px;
}

html[lang="zh-CN"] .modal-notice::after {
  content: "参赛作品所属合集的全部章节须设为「公开」；若发布为「私密」或「仅订阅用户可见」，将不参与评奖。";
}

html[lang="zh-Hant"] .modal-notice::after {
  content: "參賽作品所屬合集的全部章節須設為「公開」；若發布為「私密」或「僅訂閱用戶可見」，將不參與評獎。";
}

html[lang="ja"] .modal-notice::after {
  content: "応募作品が属するシリーズの全チャプターを「公開」に設定してください。「非公開」または「サブスク限定」の作品は審査対象外です。";
}

html[lang="en"] .modal-notice::after {
  content: "All chapters in the entry collection must be Public. Private or subscribers-only entries are not eligible for judging.";
}

.social-links {
  display: grid;
  gap: 9px;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
}

.checks input {
  width: 19px;
  height: 19px;
  margin-top: 4px;
  accent-color: var(--pink);
}

.modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 15px 20px 18px;
  background: var(--light-pink);
  border-top: 3px solid var(--ink);
}

/* ============ トースト ============ */

.toast {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  max-width: min(400px, calc(100% - 40px));
  padding: 12px 17px;
  color: var(--paper);
  background: var(--ink);
  border: 3px solid var(--pink);
  border-radius: 11px;
  box-shadow: 5px 5px 0 var(--yellow);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.94);
  transition:
    opacity 180ms var(--ease-out),
    transform 260ms var(--ease-back);
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============ モーション ============ */

@keyframes menu-pop {
  from {
    opacity: 0;
    transform: translateY(-7px) scale(0.96) rotate(-1deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes sticker-in {
  from {
    opacity: 0;
    transform: translate(-20px, 8px) rotate(-8deg) scale(0.86);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(-1.5deg) scale(1);
  }
}

@keyframes headline-in {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(12px) rotate(0.4deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translate(10px, 12px) rotate(0.8deg);
    box-shadow: 1px 1px 0 var(--card-shadow, var(--info-color, var(--blue)));
  }
  to {
    opacity: 1;
  }
}

@keyframes panel-switch {
  from {
    opacity: 0;
    clip-path: inset(0 0 12% 0);
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    clip-path: none;
    transform: translateX(0);
  }
}

@keyframes chip-snap {
  0% {
    transform: scale(0.93) rotate(-3deg);
  }
  68% {
    transform: scale(1.04) rotate(0.6deg);
  }
  100% {
    transform: scale(1) rotate(-1deg);
  }
}

@keyframes countdown-in {
  from {
    opacity: 0;
    transform: translateX(-16px) rotate(-4deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(-0.8deg) scale(1);
  }
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.92) rotate(1.4deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes print-breathe {
  0%,
  100% {
    transform: rotate(-4deg) translateX(0);
  }
  50% {
    transform: rotate(-3.2deg) translateX(-6px);
  }
}

@keyframes tone-breathe {
  0%,
  100% {
    opacity: 0.68;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.018);
  }
}

@keyframes rays-drift {
  0%,
  100% {
    transform: rotate(12deg);
  }
  50% {
    transform: rotate(15deg);
  }
}

@keyframes ring-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ring-counter {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes float-one {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-12px) rotate(-5.5deg);
  }
}

@keyframes float-two {
  0%,
  100% {
    transform: translateY(0) rotate(7deg);
  }
  50% {
    transform: translateY(11px) rotate(4.5deg);
  }
}

/* ============ レスポンシブ ============ */

@media (max-width: 1080px) {
  .nav-links {
    gap: 12px;
    font-size: 12px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 26px;
  }

  .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flow-step:nth-child(3)::after {
    display: none;
  }

  .works-grid,
  .winner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .wrap {
    width: min(calc(100% - 28px), var(--maxw));
  }

  .nav-inner {
    gap: 14px;
  }

  .nav-links {
    display: none;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .kv,
  .kv.has-img,
  .kv-img {
    min-height: 420px;
  }

  .info-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reward-grid {
    grid-template-columns: 1fr;
  }

  .works-grid,
  .winner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .winner.gold {
    grid-column: span 2;
  }

  .mine-row {
    grid-template-columns: 70px minmax(0, 1fr) auto;
  }

  .mine-row > :nth-child(4) {
    grid-column: 2;
  }

  .mine-row > :nth-child(5) {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 640px) {
  body.detail {
    padding-bottom: 82px;
  }

  .wrap {
    width: min(calc(100% - 22px), var(--maxw));
  }

  .nav-inner {
    min-height: 62px;
  }

  .logo img {
    width: 90px;
    height: 30px;
  }

  .auth-out .btn:first-child {
    display: none;
  }

  .lang {
    padding-inline: 8px;
  }

  .lang span {
    display: none;
  }

  .page-head {
    min-height: 238px;
    padding: 40px 24px 60px;
    box-shadow: 6px 6px 0 var(--yellow);
  }

  .page-head::after {
    right: -48px;
    bottom: 23px;
  }

  .page-head h1 {
    font-size: 37px;
  }

  .page-head p {
    font-size: 14px;
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: 0 0 auto;
  }

  .grid,
  .info-cards,
  .works-grid,
  .winner-grid {
    grid-template-columns: 1fr;
  }

  .cover {
    min-height: 238px;
  }

  .detail .hero {
    padding: 17px 18px 30px;
    box-shadow: 5px 5px 0 var(--pink);
  }

  .hero-left h1 {
    font-size: 34px;
  }

  .hero-prize {
    grid-template-columns: 1fr;
  }

  .hero-prize .split {
    width: 100%;
    height: 3px;
    transform: rotate(-1deg);
  }

  .hero-cta .btn {
    width: 100%;
  }

  .kv,
  .kv.has-img,
  .kv-img {
    min-height: 360px;
  }

  .kv .float-card {
    width: 92px;
    height: 123px;
  }

  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-step:nth-child(2n)::after {
    display: none;
  }

  .award-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .award-row .money {
    grid-column: 2;
    text-align: left;
  }

  .winner,
  .winner.gold {
    grid-column: auto;
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .mine-row {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .mine-row > :nth-child(n + 3) {
    grid-column: 2;
  }

  .mine-row > :nth-child(5) {
    grid-row: auto;
  }

  .section {
    padding-top: 46px;
  }

  .section::after {
    top: 42px;
    width: 62px;
    height: 11px;
  }

  #rankBody .work:first-child {
    grid-column: auto;
    display: block;
  }

  #rankBody .work:first-child .w-cover {
    min-height: 0;
    aspect-ratio: 3 / 4;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  #rankBody .work:first-child .w-body {
    display: block;
    padding: 14px 15px 15px;
  }

  #rankBody .work:first-child .w-author {
    font-size: 11px;
  }

  #rankBody .work:first-child .w-title {
    min-height: 47px;
    margin: 4px 0 11px;
    font-size: 13px;
  }

  .intro-box {
    padding: 20px 18px;
  }

  .mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    display: flex;
    gap: 9px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 3px solid var(--ink);
    backdrop-filter: blur(10px);
  }

  .mobile-cta .btn {
    flex: 1;
    min-width: 0;
    padding-inline: 9px;
    font-size: 12px;
  }

  .pick-works {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .modal-mask {
    padding: 10px;
  }

  .modal {
    max-height: calc(100vh - 20px);
  }

  .modal-body {
    max-height: calc(100vh - 197px);
    padding: 18px 16px;
  }

  .modal-foot {
    padding-inline: 15px;
  }

  .toast {
    right: 16px;
    bottom: 96px;
  }
}

/* 美しい静止フレーム：浮遊コマは左右に開いた状態を保持 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  .page-head::after {
    transform: rotate(-4deg) translateX(-3px);
  }

  .detail .hero::after {
    transform: rotate(14deg);
  }

  .kv .fc1 {
    transform: translateY(-6px) rotate(-7deg);
  }

  .kv .fc2 {
    transform: translateY(6px) rotate(6deg);
  }

  .kv .trophy .ring,
  .cup {
    transform: rotate(0deg);
  }
}

h1,h2,h3 {
  font-family: 'Noto Sans TC', "Mochiy Pop One", "M PLUS Rounded 1c", "Noto Sans SC", sans-serif;
}