﻿/* チルノのアイススケート：ゲームの世界観に合わせたページ（凍った湖の夜・ドット絵・氷のブロック） */
@font-face {
  font-family: "CirnoDot";
  src: url("/apps/cirno-ice-skate/fonts/dotgothic16-sub.woff") format("woff");
  font-display: swap;
}
.cirno-page {
  --cz-night: #0b1838;
  --cz-night2: #16305e;
  --cz-ice: #9fe8ff;
  --cz-ice2: #5cc8f8;
  --cz-snow: #f4fbff;
  --cz-ink: #1b1f4a;
  --cz-pink: #ff6a8a;
  --cz-gold: #ffe060;
  --cz-dot: "CirnoDot", "DotGothic16", "MS Gothic", monospace;
  background: linear-gradient(#0b1838, #12285a 640px, #eaf6ff 640px, #eaf6ff);
}
.cirno-page main { overflow: hidden; }
.cz-pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---------------------------------------------------------- タイトル */
.cz-hero {
  position: relative;
  min-height: 620px;
  padding: 56px 20px 250px;
  color: var(--cz-snow);
  text-align: center;
  background:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 8%, #cfe0ff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 22%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 76% 12%, #fff4c0 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 36%, #cfe0ff 50%, transparent 51%),
    linear-gradient(#081230 0%, #11295a 55%, #2a5a9a 85%, #6ab4e8 100%);
}
.cz-moon {
  position: absolute; top: 46px; right: 9%;
  width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fffbe6, #f4ecc4 60%, #e4d89c);
  box-shadow: 0 0 0 10px rgba(255, 250, 220, 0.08), 0 0 60px rgba(255, 250, 220, 0.35);
}
.cz-snow, .cz-snow::after {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 90px 110px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 150px 60px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 220px 150px, #e8f6ff 50%, transparent 51%),
    radial-gradient(1px 1px at 270px 20px, #fff 50%, transparent 51%);
  background-size: 300px 200px;
  animation: cz-snow 14s linear infinite;
  opacity: 0.8;
}
.cz-snow::after { content: ""; background-size: 220px 160px; animation-duration: 22s; opacity: 0.6; }
@keyframes cz-snow { from { background-position: 0 0; } to { background-position: -120px 400px; } }

.cz-hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.cz-back { display: inline-block; margin-bottom: 18px; color: var(--cz-ice); font-size: 0.9rem; text-decoration: none; }
.cz-back:hover { text-decoration: underline; }
.cz-fan { margin: 0; font-family: var(--cz-dot); color: #dffaff; letter-spacing: 0.08em; }
.cz-logo {
  position: relative; display: inline-block;
  margin: 10px 0 0; font-family: var(--cz-dot); font-weight: 400;
  font-size: clamp(2.1rem, 6.2vw, 4.1rem); line-height: 1.12; color: #fff; letter-spacing: 0.02em; white-space: nowrap;
  text-shadow:
    3px 0 0 #1f3fb0, -3px 0 0 #1f3fb0, 0 3px 0 #1f3fb0, 0 -3px 0 #1f3fb0,
    3px 3px 0 #1f3fb0, -3px 3px 0 #1f3fb0, 3px -3px 0 #1f3fb0, -3px -3px 0 #1f3fb0,
    0 8px 0 #0b1838;
}
.cz-br { display: none; }
.cz-nine {
  position: absolute; top: -0.35em; right: -0.9em; font-size: 0.55em;
  color: var(--cz-pink); text-shadow: 2px 2px 0 #1b1f4a, -2px -2px 0 #1b1f4a, 2px -2px 0 #1b1f4a, -2px 2px 0 #1b1f4a;
  animation: cz-hue 4s linear infinite;
}
@keyframes cz-hue { to { filter: hue-rotate(360deg); } }
.cz-en { margin: 6px 0 18px; font-family: var(--cz-dot); color: var(--cz-ice); font-size: 1.15rem; letter-spacing: 0.12em; }
.cz-lead { margin: 0 auto 26px; max-width: 34em; color: #e8f6ff; line-height: 1.9; }
.cz-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cz-ice-btn {
  display: inline-flex; flex-direction: column; align-items: center; min-width: 210px;
  padding: 10px 22px 12px; font-family: var(--cz-dot); font-size: 1.1rem; color: var(--cz-ink); text-decoration: none;
  background: linear-gradient(#f4fdff, #bfefff 60%, #8edcf8);
  border: 3px solid var(--cz-ink); box-shadow: inset 0 3px 0 #ffffff, inset 0 -4px 0 #5cb4e6, 0 5px 0 #0b1838;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.cz-ice-btn:hover { transform: translateY(-2px); box-shadow: inset 0 3px 0 #fff, inset 0 -4px 0 #5cb4e6, 0 7px 0 #0b1838; }
.cz-ice-btn:active { transform: translateY(3px); box-shadow: inset 0 3px 0 #fff, inset 0 -4px 0 #5cb4e6, 0 2px 0 #0b1838; }
.cz-btn-small { font-size: 0.72rem; color: #3a5a8a; letter-spacing: 0.06em; }
.cz-price { margin: 16px 0 0; font-size: 0.85rem; color: #bfe4ff; }

/* 凍った湖とすべるチルノ */
.cz-rink {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1;
  background:
    repeating-linear-gradient(90deg, transparent 0 62px, rgba(255, 255, 255, 0.35) 62px 64px),
    linear-gradient(#f4feff 0 6px, #a8e6ff 6px 14px, #5cb4e6 14px 60px, #2d78b8 60px);
  border-top: 2px solid #ffffff;
}
.cz-runner {
  position: absolute; bottom: 106px; left: -96px; width: 96px; height: 96px;
  background: url("/apps/cirno-ice-skate/img/cirno-run.png") 0 0 / 384px 96px no-repeat;
  image-rendering: pixelated;
  animation: cz-run-frames 0.6s steps(4) infinite, cz-run-across 11s linear infinite;
}
@keyframes cz-run-frames { to { background-position: -384px 0; } }
@keyframes cz-run-across { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 192px)); } }
.cz-trail {
  position: absolute; bottom: 104px; left: -160px; width: 120px; height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9));
  animation: cz-run-across 11s linear infinite;
}

/* ---------------------------------------------------------- 共通の見出し・カード */
.cz-section { padding: 72px 0; }
.cz-eyebrow { margin: 0 0 6px; font-family: var(--cz-dot); color: #2d78b8; letter-spacing: 0.18em; font-size: 0.85rem; }
.cz-h2 { margin: 0 0 20px; font-family: var(--cz-dot); font-weight: 400; font-size: clamp(1.6rem, 3.6vw, 2.2rem); color: var(--cz-ink); }
.cz-h2-sm { font-size: 1.4rem; }
.cz-text { max-width: 42em; line-height: 1.9; color: #2a3358; }
.cz-note, .cz-small { color: #4a5578; font-size: 0.9rem; line-height: 1.8; }

.cz-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.cz-card {
  position: relative; padding: 26px 22px 22px; background: #ffffff;
  border: 3px solid var(--cz-ink); box-shadow: 6px 6px 0 #9fd6f4;
}
.cz-card h3 { margin: 6px 0 8px; font-family: var(--cz-dot); font-weight: 400; font-size: 1.25rem; color: var(--cz-ink); }
.cz-card p { margin: 0; line-height: 1.8; color: #2a3358; }
.cz-num {
  position: absolute; top: -18px; left: 18px; width: 36px; height: 36px; display: grid; place-items: center;
  font-family: var(--cz-dot); font-size: 1.2rem; color: #fff; background: var(--cz-ice2); border: 3px solid var(--cz-ink);
}
.cz-card-pf { background: linear-gradient(160deg, #ffffff 40%, #e4f8ff); }
.cz-card-pf .cz-num { background: var(--cz-pink); }

/* ---------------------------------------------------------- 幻想郷めぐり */
.cz-tour { background: linear-gradient(#eaf6ff, #d8eefc); }
.cz-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 26px 0; }
.cz-shot { margin: 0; }
.cz-shot img { display: block; width: 100%; height: auto; border: 3px solid var(--cz-ink); box-shadow: 5px 5px 0 rgba(27, 31, 74, 0.25); image-rendering: pixelated; }
.cz-shot figcaption { margin-top: 8px; font-family: var(--cz-dot); color: var(--cz-ink); font-size: 0.95rem; }
.cz-modes { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; padding: 0; list-style: none; }
.cz-modes li { padding: 6px 16px; font-family: var(--cz-dot); color: var(--cz-ink); border: 3px solid var(--cz-ink); }
.m-easy { background: #7af0a0; } .m-normal { background: #9fe8ff; } .m-hard { background: #ffb040; } .m-lunatic { background: #ff5aa8; color: #fff !important; }

/* ---------------------------------------------------------- アップデート */
.cz-update { background: linear-gradient(#16305e, #0b1838); color: var(--cz-snow); }
.cz-update .cz-eyebrow { color: var(--cz-ice); }
.cz-update .cz-h2 { color: #fff; }
.cz-badge { display: inline-block; margin-left: 8px; padding: 2px 10px; font-size: 0.9rem; vertical-align: middle; color: var(--cz-ink); background: var(--cz-gold); border: 2px solid var(--cz-ink); }
.cz-feature { position: relative; padding: 26px; margin-bottom: 26px; border: 3px solid #fff; background: rgba(255, 255, 255, 0.06); }
.cz-xmas {
  background:
    repeating-linear-gradient(90deg, #ff4a5a 0 6px, transparent 6px 18px, #ffe060 18px 24px, transparent 24px 36px, #5ef08a 36px 42px, transparent 42px 54px) top / 100% 4px no-repeat,
    linear-gradient(160deg, rgba(120, 20, 40, 0.55), rgba(20, 40, 90, 0.4));
}
.cz-feature-text h3, .cz-feature-card h3 { margin: 4px 0 10px; font-family: var(--cz-dot); font-weight: 400; font-size: 1.45rem; color: #fff; }
.cz-feature-text h3 small { font-size: 0.8rem; color: var(--cz-gold); margin-left: 6px; }
.cz-feature-text p, .cz-feature-card p { line-height: 1.85; color: #dfeefc; }
.cz-feature strong { color: var(--cz-gold); font-weight: 700; }
.cz-portraits { display: flex; gap: 14px; justify-content: center; margin: 10px 0 4px; }
.cz-portraits img { width: 156px; height: 156px; background: radial-gradient(circle, rgba(159, 232, 255, 0.35), transparent 70%); }
.cz-portraits-sm img { width: 124px; height: 124px; }
.cz-shots-2 { margin-bottom: 0; }
.cz-shots-2 figcaption, .cz-feature-card .cz-small { color: #cfe4ff; }
.cz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.cz-feature-card { padding: 22px; border: 3px solid #fff; background: rgba(255, 255, 255, 0.06); }
.cz-feature-card > img { display: block; width: 100%; height: auto; margin-top: 12px; border: 3px solid var(--cz-ink); image-rendering: pixelated; }
.cz-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; padding: 0; list-style: none; }
.cz-swatches li { width: 34px; height: 24px; background: var(--c); border: 3px solid #fff; box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.35); }
.cz-swatches .cz-rainbow { background: linear-gradient(90deg, #ff5a7a, #ffb040, #fff060, #60f080, #50c8ff, #8a70ff, #ff70e0); }

/* ---------------------------------------------------------- 情報・クレジット */
.cz-info { font-size: 0.95rem; }
.cz-links a { color: #2d78b8; }
.cz-credit { padding-top: 0; }

@media (max-width: 560px) {
  .cz-hero { padding-top: 40px; min-height: 660px; }
  .cz-logo { white-space: normal; }
  .cz-br { display: inline; }
  .cz-nine { right: -0.4em; }
  .cz-moon { width: 56px; height: 56px; top: 30px; right: 6%; }
  .cz-ice-btn { min-width: 0; width: 100%; }
  .cz-portraits img { width: 120px; height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .cz-snow, .cz-snow::after, .cz-nine, .cz-runner, .cz-trail { animation: none; }
  .cz-runner { left: 12%; }
  .cz-trail { display: none; }
}
