@charset "UTF-8";
/* =========================================================
   Domon — Indie Game Studio
   テーマ：ドット方眼ノート × レトロゲーム（赤）
   ---------------------------------------------------------
    0. Tokens        1. Base          2. Header / Info bar
    3. Parts         4. Hero          5. News
    6. Games         7. About         8. Policy
    9. Continue     10. History      11. Company
   12. Contact      13. Footer       14. Menu / To top
   15. Sub pages    16. Keyframes
   ブレイクポイント：768px（タブレット） / 1024px（PC） / 1280px（ワイド）
   ========================================================= */

/* ---------- 0. Tokens ---------- */
:root {
  color-scheme: light;
  --ink: #231815;
  --ink-2: #3b2d28;
  --paper: #fffdf8;
  --cream: #f8f3e9;
  --cream-2: #f0e8d9;
  --red: #f06060;     /* テーマカラー RGB(240, 96, 96) */
  --red-d: #c03a3a;   /* 小さい赤文字用（読みやすさのため少し濃く） */
  --red-l: #ffe3e3;
  --yellow: #ffcf3f;
  --blue: #2f7de1;
  --green: #2ea567;
  --mute: #776b62;
  --line: #ddd3c3;
  --dot: rgba(35, 24, 21, .17);
  --dot-w: rgba(255, 255, 255, .3);
  --f-disp: "Dela Gothic One", "Noto Sans JP", "Hiragino Sans", sans-serif;
  --f-px: "DotGothic16", "Noto Sans JP", monospace;
  --f-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --hard: 5px 5px 0 var(--ink);
  --hard-lg: 8px 8px 0 var(--ink);
  --hd-h: 64px;
  --ease-pop: cubic-bezier(.2, 1.6, .4, 1);
  --ease-out: cubic-bezier(.2, 1, .3, 1);
  --tri: polygon(0 0, 100% 50%, 0 100%);
}

/* ---------- 1. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.9;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 8px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }
.px { font-family: var(--f-px); font-weight: 400; }
.br-pc { display: none; }
@media (min-width: 1024px) { .br-pc { display: inline; } }
@media (min-width: 768px) { .br-sp { display: none; } }

/* 背景：ドット方眼 */
.dot, .dot2, .red, .ink {
  background-image: radial-gradient(circle at center, var(--dot) 1.2px, transparent 1.8px);
  background-size: 20px 20px;
}
.dot { background-color: var(--cream); }
.dot2 { background-color: var(--cream-2); }
.red {
  background-color: var(--red);
  color: var(--ink);
  background-image: radial-gradient(circle at center, var(--dot-w) 1.2px, transparent 1.8px);
}
.ink {
  background-color: var(--ink);
  color: var(--paper);
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, .13) 1.2px, transparent 1.8px);
}

/* セクション上端のドット絵っぽい段差 */
.edge { position: relative; }
.edge::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 100%;
  height: 12px;
  background: var(--edge, var(--red));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 12'%3E%3Cpath d='M0 12V4h8V0h8v4h8v4h8v4z'/%3E%3C/svg%3E") left bottom / 32px 12px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 12'%3E%3Cpath d='M0 12V4h8V0h8v4h8v4h8v4z'/%3E%3C/svg%3E") left bottom / 32px 12px repeat-x;
  pointer-events: none;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
@media (min-width: 768px) { .wrap { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1024px) { .wrap { padding-left: 48px; padding-right: 48px; } }

.sec { padding-block: 64px 76px; }
@media (min-width: 1024px) { .sec { padding-block: 104px 116px; } }

/* ---------- 2. Header / Info bar ---------- */
.info { background: var(--red); color: var(--ink); }
.info__in {
  display: flex; align-items: center; gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px max(14px, env(safe-area-inset-right, 0px)) 6px max(14px, env(safe-area-inset-left, 0px));
  font-size: 13px; font-weight: 700; line-height: 1.6;
  text-decoration: none;
}
.info__new {
  flex: 0 0 auto;
  font-family: var(--f-px);
  background: var(--yellow); color: var(--ink);
  padding: 0 8px; border-radius: 4px;
  animation: blink 1.4s steps(2) infinite;
}
.info__date { flex: 0 0 auto; font-family: var(--f-px); }
.info__ttl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info__arr { flex: 0 0 auto; margin-left: auto; width: 8px; height: 10px; background: currentColor; clip-path: var(--tri); }
.info__in:hover .info__ttl { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 420px) { .info__date { display: none; } }

.hd {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  transition: box-shadow .25s;
}
.hd.is-scrolled { box-shadow: 0 6px 0 rgba(35, 24, 21, .1); }
.hd__in {
  display: flex; align-items: center; gap: 12px;
  max-width: 1200px;
  height: var(--hd-h);
  margin: 0 auto;
  padding: 0 max(12px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px));
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__mark {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  padding: 6px 5px 4px;
  background: var(--red);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
}
.brand__mark svg { width: 100%; }
.brand__name { display: inline-grid; justify-items: start; font-family: var(--f-disp); font-weight: 400; font-size: 25px; line-height: 1; letter-spacing: .03em; }
.brand__name small {
  margin-top: 4px;
  font-family: var(--f-px); font-weight: 400;
  font-size: .37em; line-height: 1; letter-spacing: .74em;
  margin-right: -.74em; /* 最後の文字の後ろの字間を打ち消して「DOMON」と幅をそろえる */
  color: var(--ink-2);
}
.gnav { display: none; }
.hd__cta { display: none !important; }
.hd__menu {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 12px 0 11px;
  border: 3px solid var(--ink); border-radius: 10px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--f-px); font-size: 14px; letter-spacing: .06em;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.hd__menu:active { transform: translate(3px, 3px); box-shadow: none; }
.hd__bars { display: grid; gap: 3px; }
.hd__bars i { display: block; width: 16px; height: 3px; background: var(--ink); }

@media (min-width: 1024px) {
  :root { --hd-h: 76px; }
  html { scroll-padding-top: 90px; }
  .hd__in { gap: 18px; padding: 0 24px; }
  .brand { margin-right: 0; }
  .brand__mark { width: 46px; height: 46px; }
  .brand__name { font-size: 29px; }
  .gnav { display: flex; gap: 2px; margin-left: auto; }
  .gnav a {
    position: relative;
    display: grid; justify-items: center;
    padding: 6px 12px 7px;
    border-radius: 10px;
    font-weight: 900; font-size: 14px; line-height: 1.35;
    text-decoration: none;
    transition: background .2s;
  }
  .gnav a small { font-family: var(--f-px); font-weight: 400; font-size: 12px; letter-spacing: .1em; color: var(--red-d); }
  .gnav a:hover { background: var(--cream-2); }
  .gnav a.is-current::after {
    content: "";
    position: absolute; left: 50%; bottom: -3px;
    width: 9px; height: 9px; margin-left: -4.5px;
    background: var(--red);
    border: 2px solid var(--ink);
  }
  .hd__cta { display: inline-flex !important; }
  .hd__menu { display: none; }
}

/* ---------- 3. Parts ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px;
  padding: 10px 24px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--red);
  color: var(--ink);
  font-family: var(--f-disp); font-weight: 400; font-size: 17px; line-height: 1.3; letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--hard);
  transition: transform .12s, box-shadow .12s, background .2s;
}
.btn::after {
  content: "";
  flex: 0 0 auto;
  width: 9px; height: 12px;
  background: currentColor;
  clip-path: var(--tri);
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 6px 16px; font-size: 14px; gap: 10px; box-shadow: 3px 3px 0 var(--ink); }
.btn--sm:hover { box-shadow: 1px 1px 0 var(--ink); }
.btn--ext::after {
  width: 12px; height: 12px;
  clip-path: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1.5h6.5V8M10.5 1.5 1.5 10.5' fill='none' stroke='%23000' stroke-width='2.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1.5h6.5V8M10.5 1.5 1.5 10.5' fill='none' stroke='%23000' stroke-width='2.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ゲームのメニューウィンドウ風リンク */
.gmenu {
  display: grid;
  gap: 2px;
  padding: 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 7px var(--paper), 6px 6px 0 var(--red);
  font-family: var(--f-px);
}
.gmenu__item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px 9px 12px;
  border-radius: 6px;
  color: var(--paper);
  font-size: 19px; line-height: 1.4; letter-spacing: .04em;
  text-decoration: none;
  transition: background .15s;
}
.gmenu__item::before {
  content: "";
  flex: 0 0 auto;
  width: 11px; height: 14px;
  background: var(--yellow);
  clip-path: var(--tri);
  opacity: 0;
}
.gmenu__item small { margin-left: auto; font-size: 12px; opacity: .55; letter-spacing: .08em; }
.gmenu__item:hover, .gmenu__item:focus-visible { background: rgba(255, 255, 255, .08); outline: none; }
.gmenu__item:first-child::before,
.gmenu__item:hover::before,
.gmenu__item:focus-visible::before { opacity: 1; animation: blink 1s steps(2) infinite; }
.gmenu:hover .gmenu__item:first-child:not(:hover)::before,
.gmenu:focus-within .gmenu__item:first-child:not(:focus-visible):not(:hover)::before { opacity: 0; animation: none; }

/* セクション見出し */
.shd { margin-bottom: 30px; }
.shd__stage {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 3px 4px 3px 12px;
  background: var(--ink); color: var(--paper);
  border-radius: 8px;
  font-family: var(--f-px); font-size: 14px; letter-spacing: .1em; line-height: 1.4;
}
.shd__stage b { font-weight: 400; background: var(--red); color: var(--ink); padding: 0 8px; border-radius: 5px; }
.shd__ttl {
  margin-top: 14px;
  font-family: var(--f-disp); font-weight: 400;
  font-size: clamp(30px, 8.6vw, 38px);
  line-height: 1.3; letter-spacing: .02em;
}
.shd__en {
  display: flex; align-items: center; gap: 12px;
  margin-top: 6px;
  font-family: var(--f-px); font-size: 15px; letter-spacing: .2em;
  color: var(--red-d);
}
.shd__en::after { content: ""; flex: 1 1 auto; border-top: 3px dashed currentColor; opacity: .45; }
.shd__lead { margin-top: 14px; max-width: 36em; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.shd--inv .shd__stage { background: var(--paper); color: var(--ink); }
.shd--inv .shd__ttl { color: var(--paper); text-shadow: 3px 3px 0 var(--ink); }
.shd--inv .shd__en { color: var(--ink); }
.shd--inv .shd__lead { color: var(--ink); }
@media (min-width: 1024px) {
  .shd {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    grid-template-areas: "stage stage" "ttl lead" "en en";
    column-gap: 56px;
    align-items: end;
    margin-bottom: 52px;
  }
  .shd__stage { grid-area: stage; justify-self: start; font-size: 15px; }
  .shd__ttl { grid-area: ttl; margin-top: 18px; font-size: 52px; }
  .shd__lead { grid-area: lead; justify-self: end; margin: 0 0 12px; max-width: 30em; text-align: right; font-size: 15px; }
  .shd__en { grid-area: en; margin-top: 10px; font-size: 16px; }
}

/* カード・テープ */
.card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--hard-lg);
}
.tape {
  position: absolute; z-index: 3;
  width: 86px; height: 24px;
  background: rgba(255, 207, 63, .82);
  border-inline: 2px dashed rgba(35, 24, 21, .14);
  pointer-events: none;
}
.tape--r2 { background: rgba(240, 96, 96, .6); }
.tape--l { left: 22px; top: -13px; transform: rotate(-6deg); }
.tape--r { right: 22px; top: -13px; transform: rotate(5deg); }
.tape--c { left: 50%; top: -14px; margin-left: -43px; transform: rotate(-2deg); }

.mark { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 94%, transparent 94%); padding-inline: 2px; }

/* スクロールで表示 */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .8s var(--ease-out); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ドット絵 */
[data-pixel] svg { width: 100%; height: auto; }

/* ---------- 4. Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: 26px; }
.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44%;
  grid-template-areas:
    "tag  tag"
    "ttl  ttl"
    "lead vis"
    "menu menu";
  align-items: center;
  column-gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 max(18px, env(safe-area-inset-right, 0px)) 0 max(18px, env(safe-area-inset-left, 0px));
}
.hero__tag { grid-area: tag; justify-self: start; }
.hero__tag span {
  position: relative;
  display: inline-block;
  padding: 2px 14px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--f-px); font-size: 14px; letter-spacing: .12em;
  transform: rotate(-3deg);
}
.hero__ttl {
  grid-area: ttl;
  margin-top: 16px;
  font-family: var(--f-disp); font-weight: 400;
  font-size: clamp(38px, 11.6vw, 60px);
  line-height: 1.3;
  letter-spacing: .02em;
}
.hero__ttl .ln { display: block; animation: popIn .7s var(--ease-pop) both; }
.hero__ttl .ln:nth-child(2) { animation-delay: .12s; }
.hero__ttl .ln:nth-child(3) { animation-delay: .24s; }
.hero__ttl em {
  position: relative;
  font-style: normal;
  color: var(--red);
  text-shadow: 3px 3px 0 var(--ink);
}
.hero__spark { position: absolute; right: -.42em; top: -.08em; width: .38em; animation: twinkle 1.6s steps(2) infinite; }
.hero__lead {
  grid-area: lead;
  margin-top: 14px;
  font-weight: 700; font-size: 13.5px; line-height: 1.9;
  animation: fadeUp .7s ease .5s both;
}
.hero__menu { grid-area: menu; margin-top: 18px; animation: fadeUp .7s ease .7s both; }
.hero__visual {
  grid-area: vis;
  position: relative;
  display: grid; place-items: center;
  padding: 18px 0 10px;
}
.console {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: auto;
  animation: float 3.6s ease-in-out infinite;
}
.stk { position: absolute; z-index: 2; pointer-events: none; }
.stk--new {
  right: -6px; top: 0;
  width: 58px; height: 58px;
  filter: drop-shadow(3px 3px 0 var(--ink));
  animation: wobble 2.4s ease-in-out infinite;
}
.burst {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  padding: 3px;
  background: var(--ink);
  clip-path: polygon(100% 50%, 84.8% 59.3%, 93.3% 75%, 75.5% 75.5%, 75% 93.3%, 59.3% 84.8%, 50% 100%, 40.7% 84.8%, 25% 93.3%, 24.5% 75.5%, 6.7% 75%, 15.2% 59.3%, 0% 50%, 15.2% 40.7%, 6.7% 25%, 24.5% 24.5%, 25% 6.7%, 40.7% 15.2%, 50% 0%, 59.3% 15.2%, 75% 6.7%, 75.5% 24.5%, 93.3% 25%, 84.8% 40.7%);
}
.burst span {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  background: var(--yellow);
  clip-path: inherit;
  font-family: var(--f-px); font-size: 13px; letter-spacing: .02em;
}
.stk--hp { display: none; left: 0; top: 6%; gap: 4px; }
.stk--hp > div { width: 22px; }
.stk--star { width: 22px; }
.stk--star1 { left: 2%; bottom: 18%; animation: twinkle 1.4s steps(2) infinite; }
.stk--star2 { right: 4%; bottom: 34%; width: 16px; animation: twinkle 1.8s steps(2) infinite .4s; }

.ground { position: relative; height: 54px; margin-top: 52px; background: var(--ink); }
.ground::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 100%;
  height: 12px;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 12'%3E%3Cpath d='M0 12V4h8V0h8v4h8v4h8v4z'/%3E%3C/svg%3E") left bottom / 32px 12px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 12'%3E%3Cpath d='M0 12V4h8V0h8v4h8v4h8v4z'/%3E%3C/svg%3E") left bottom / 32px 12px repeat-x;
}
.ground__hint {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-px); font-size: 13px; letter-spacing: .2em;
  color: var(--paper);
  white-space: nowrap;
  animation: blink 1.2s steps(2) infinite;
}
.walker { position: absolute; bottom: calc(100% + 4px); left: -60px; width: 34px; animation: walk 18s linear infinite; }
.walker > div { animation: hop .5s steps(2, jump-none) infinite; }
.walker:nth-child(2) { width: 28px; animation-delay: -6s; }
.walker:nth-child(3) { width: 30px; animation-delay: -12s; animation-duration: 20s; }
.walker:nth-child(4) { width: 24px; animation-delay: -3s; animation-duration: 24s; }

@media (min-width: 768px) {
  .hero { padding-top: 40px; }
  .hero__in { padding: 0 32px; grid-template-columns: minmax(0, 1fr) 42%; column-gap: 24px; }
  .hero__tag span { font-size: 15px; }
  .hero__ttl { font-size: 72px; }
  .hero__lead { font-size: 15px; }
  .hero__menu { max-width: 560px; }
  .stk--new { width: 80px; height: 80px; right: 0; }
  .burst span { font-size: 17px; }
  .stk--hp { display: flex; }
}
@media (min-width: 1024px) {
  .hero { padding-top: 38px; }
  .hero__in {
    padding: 0 48px;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas:
      "tag  vis"
      "ttl  vis"
      "lead vis"
      "menu vis";
    column-gap: 48px;
  }
  .hero__ttl { font-size: clamp(56px, 5.2vw, 80px); }
  .hero__lead { margin-top: 18px; max-width: 32em; font-size: 15.5px; }
  .hero__menu { align-self: start; margin-top: 26px; max-width: 520px; }
  .hero__visual { padding: 0; }
  .stk--new { width: 96px; height: 96px; right: 2%; top: 2%; }
  .burst span { font-size: 19px; }
  .ground { margin-top: 44px; }
  .walker { width: 40px; }
  .walker:nth-child(2) { width: 32px; }
  .walker:nth-child(3) { width: 36px; }
  .walker:nth-child(4) { width: 28px; }
}

/* コンソール画面の動き */
.scr__txt { font-family: var(--f-px); font-size: 9px; fill: #fffdf8; letter-spacing: .5px; }
.scr__stars rect { animation: blink 1.6s steps(2) infinite; }
.scr__stars rect:nth-child(2n) { animation-delay: -.8s; }
.scr__ground { animation: ground .6s linear infinite; }
.scr__hero { animation: jump 1.8s ease-in-out infinite; }
.scr__coin { transform-box: fill-box; transform-origin: center; animation: coin 1s ease-in-out infinite; }
.console__logo { font-family: var(--f-disp); font-size: 15px; fill: #fffdf8; letter-spacing: .5px; }
.console__led { animation: blink 2.4s ease-in-out infinite; }

/* ---------- 5. News ---------- */
.chips {
  display: flex; gap: 10px;
  margin: 0 -4px 18px;
  padding: 4px 4px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 2px 14px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  font-family: var(--f-px); font-size: 14px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s, box-shadow .12s, background .2s;
}
.chip:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.chip.is-on { background: var(--red); color: var(--ink); }
.news__list { padding: 4px 0; }
.ni + .ni { border-top: 2px dashed var(--line); }
.ni summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  grid-template-areas: "meta tg" "ttl tg";
  gap: 4px 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 14px;
  transition: background .2s;
}
.ni summary::-webkit-details-marker { display: none; }
.ni summary:hover { background: #fbf6ec; }
.ni__meta { grid-area: meta; display: flex; align-items: center; gap: 10px; }
.ni__date { font-family: var(--f-px); font-size: 14px; letter-spacing: .04em; color: var(--red-d); }
.cat {
  padding: 0 8px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  font-size: 11px; font-weight: 900; line-height: 1.6;
  white-space: nowrap;
}
.cat--release { background: var(--red); color: var(--ink); }
.cat--update { background: var(--blue); color: var(--paper); }
.cat--event { background: var(--yellow); }
.cat--media { background: var(--green); color: var(--paper); }
.cat--info { background: var(--ink); color: var(--paper); }
.ni__ttl { grid-area: ttl; font-weight: 900; font-size: 15.5px; line-height: 1.6; }
.ni summary:hover .ni__ttl { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--red); }
.ni__tg {
  grid-area: tg;
  position: relative;
  width: 32px; height: 32px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  transition: background .2s, color .2s;
}
.ni__tg::before, .ni__tg::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 12px; height: 3px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.ni__tg::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s; }
.ni details[open] .ni__tg { background: var(--red); color: var(--ink); }
.ni details[open] .ni__tg::after { transform: translate(-50%, -50%) rotate(0deg); }
.ni__body { padding: 0 18px 20px; font-size: 14px; line-height: 1.95; animation: fadeUp .35s ease both; }
.ni__body p + p { margin-top: .8em; }
.ni__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.news__more { display: flex; margin: 26px auto 0; }
.news__empty { padding: 28px 18px; text-align: center; color: var(--mute); font-weight: 700; }
@media (min-width: 768px) {
  .ni summary {
    grid-template-columns: 232px minmax(0, 1fr) 32px;
    grid-template-areas: "meta ttl tg";
    padding: 20px 28px;
  }
  .ni__ttl { font-size: 16px; }
  .ni__body { padding: 0 28px 24px 288px; font-size: 14.5px; }
}

/* ---------- 6. Games ---------- */
.games { --edge: var(--red); }
.glist { display: grid; gap: 40px; }
.gcard { display: grid; gap: 26px; padding: 26px 18px 24px; }
.photo {
  position: relative;
  padding: 8px 8px 34px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 rgba(35, 24, 21, .22);
  transform: rotate(-1.2deg);
  transition: transform .3s var(--ease-out);
}
.gcard:nth-child(even) .photo { transform: rotate(1.2deg); }
.gcard:hover .photo { transform: rotate(0deg) scale(1.01); }
.photo__img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--cream-2);
}
.photo__img img { width: 100%; height: 100%; object-fit: cover; }
.photo__cap {
  position: absolute; left: 12px; right: 12px; bottom: 5px;
  font-family: var(--f-px); font-size: 13px; letter-spacing: .08em;
  color: var(--mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sample {
  position: absolute; right: -10px; top: -14px; z-index: 4;
  padding: 0 10px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--f-px); font-size: 13px; letter-spacing: .1em;
  transform: rotate(6deg);
}
/* スクリーンショットの切り替え（サムネイル） */
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.thumb {
  position: relative;
  padding: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--cream-2);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s, transform .15s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: .9; }
.thumb.is-on { opacity: 1; transform: translateY(-2px); outline: 3px solid var(--red); outline-offset: 2px; }
.photo__img img { transition: opacity .2s; }
.photo__img img.is-fade { opacity: .2; }

.gcard__no { display: flex; align-items: center; gap: 12px; font-family: var(--f-px); font-size: 14px; letter-spacing: .16em; color: var(--red-d); }
.gcard__no b {
  font-family: var(--f-disp); font-weight: 400;
  font-size: 52px; line-height: 1; letter-spacing: .02em;
  color: var(--paper);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--red);
}
.gcard__ttl { margin-top: 8px; font-family: var(--f-disp); font-weight: 400; font-size: clamp(26px, 7.6vw, 34px); line-height: 1.35; }
.gcard__en { font-family: var(--f-px); font-size: 14px; letter-spacing: .16em; color: var(--mute); }
.gcard__catch { margin-top: 14px; font-weight: 900; font-size: 15.5px; line-height: 1.8; }
.gcard__catch span { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 94%, transparent 94%); }
.gcard__desc { margin-top: 12px; font-size: 14.5px; line-height: 1.95; }
.status {
  position: relative;
  margin-top: 26px;
  padding: 16px 18px 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 6px var(--paper);
}
.status::before {
  content: "STATUS";
  position: absolute; left: 18px; top: -13px;
  padding: 0 8px;
  background: var(--ink); color: var(--yellow);
  border: 2px solid var(--paper);
  border-radius: 6px;
  font-family: var(--f-px); font-size: 13px; letter-spacing: .12em; line-height: 1.6;
}
.status div { display: grid; grid-template-columns: 6.4em minmax(0, 1fr); gap: 10px; padding: 5px 4px; font-size: 13.5px; line-height: 1.7; }
.status div + div { border-top: 1px dashed rgba(255, 253, 248, .2); }
.status dt { font-family: var(--f-px); color: var(--yellow); }
.status dd { font-weight: 700; }
.plats { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.plats li {
  padding: 0 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 700; font-size: 12.5px; line-height: 1.8;
}
.gcard__links { margin-top: 20px; display: grid; gap: 12px; }
.gcard__links .btn { justify-content: space-between; font-family: var(--f-sans); font-weight: 900; font-size: 15.5px; letter-spacing: .02em; }

.more { margin-top: 64px; }
.more__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.more__en {
  padding: 0 10px;
  background: var(--yellow); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 8px;
  font-family: var(--f-px); font-size: 14px; letter-spacing: .12em;
}
.more__ttl { font-family: var(--f-disp); font-weight: 400; font-size: 24px; line-height: 1.4; color: var(--paper); text-shadow: 2px 2px 0 var(--ink); }
.wlist { margin-top: 24px; display: grid; gap: 24px; }
.wcard { display: flex; flex-direction: column; padding: 14px 14px 18px; border-radius: 16px; box-shadow: var(--hard); }
.wcard__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 3px solid var(--ink); border-radius: 10px; background: var(--cream-2); }
.wcard__img img { width: 100%; height: 100%; object-fit: cover; }
.wcard__label { margin-top: 12px; font-family: var(--f-px); font-size: 13px; letter-spacing: .06em; color: var(--red-d); }
.wcard__ttl { margin-top: 2px; font-weight: 900; font-size: 19px; line-height: 1.45; }
.wcard__ttl span { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 94%, transparent 94%); }
.wcard__txt { flex: 1 1 auto; margin-top: 8px; font-size: 13.5px; line-height: 1.85; }
.wcard__link { margin-top: 14px; align-self: flex-start; }

.poster {
  position: absolute; inset: 0;
  display: grid; place-items: center; align-content: center; gap: 8px;
  background-color: var(--pc, var(--red));
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, .3) 1.2px, transparent 1.8px);
  background-size: 16px 16px;
}
.poster__px { width: 22%; max-width: 110px; animation: bob 2.4s ease-in-out infinite; }
.poster__ttl {
  padding: 0 12px;
  font-family: var(--f-disp); font-weight: 400;
  font-size: clamp(18px, 5.2vw, 40px); line-height: 1.15; letter-spacing: .02em;
  color: var(--paper);
  text-align: center;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--ink);
}
.wcard .poster__ttl { font-size: 22px; -webkit-text-stroke-width: 3px; }
.poster__tag {
  position: absolute; left: 8px; bottom: 8px;
  padding: 0 6px;
  background: var(--ink); color: var(--paper);
  border-radius: 4px;
  font-family: var(--f-px); font-size: 11px; letter-spacing: .06em;
}

@media (min-width: 768px) {
  .wlist { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
}
@media (min-width: 1024px) {
  .glist { gap: 56px; }
  .gcard {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    padding: 44px 44px 40px;
    border-radius: 22px;
  }
  .gcard:nth-child(even) .gcard__media { order: 2; }
  .gcard__no b { font-size: 64px; }
  .gcard__ttl { font-size: 38px; }
  .gcard__links { display: flex; flex-wrap: wrap; }
  .gcard__links .btn { flex: 1 1 auto; white-space: nowrap; }
  .more { margin-top: 96px; }
  .more__ttl { font-size: 30px; }
  .wlist { gap: 28px; margin-top: 30px; }
}

/* ---------- 7. About ---------- */
.about, .history { --edge: var(--cream); }
.about__grid { display: grid; gap: 18px; }
.about__msg { font-family: var(--f-disp); font-weight: 400; font-size: clamp(23px, 6.6vw, 30px); line-height: 1.65; }
.about__msg em { font-style: normal; color: var(--red); text-shadow: 2px 2px 0 var(--ink); }
.about__txt { font-weight: 700; font-size: 15px; line-height: 2; }
.roles { margin-top: 52px; }
.roles__ttl { display: flex; align-items: center; gap: 12px; font-family: var(--f-px); font-size: 18px; letter-spacing: .14em; }
.roles__ttl::before { content: ""; width: 12px; height: 15px; background: var(--red); clip-path: var(--tri); animation: blink 1s steps(2) infinite; }
.roles__ttl small { font-family: var(--f-sans); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; color: var(--mute); }
.roles__list { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.role {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--hard);
  transition: transform .15s, box-shadow .15s;
}
.role:hover { transform: translate(-2px, -3px); box-shadow: 7px 8px 0 var(--ink); }
.role__top {
  position: relative;
  display: grid; place-items: center;
  padding: 30px 0 18px;
  background-color: var(--c);
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, .32) 1.2px, transparent 1.8px);
  background-size: 14px 14px;
  border-bottom: 3px solid var(--ink);
}
.role__p {
  position: absolute; left: 8px; top: 8px;
  padding: 0 6px;
  background: var(--ink); color: var(--paper);
  border-radius: 4px;
  font-family: var(--f-px); font-size: 12px; line-height: 1.6;
}
.role__ico { width: 62px; animation: bob 2.2s ease-in-out infinite; }
.role:nth-child(2) .role__ico { animation-delay: -.55s; }
.role:nth-child(3) .role__ico { animation-delay: -1.1s; }
.role:nth-child(4) .role__ico { animation-delay: -1.65s; }
.role__body { padding: 10px 12px 14px; }
.role__en { font-family: var(--f-px); font-size: 12px; letter-spacing: .12em; color: var(--mute); }
.role__name { font-family: var(--f-disp); font-weight: 400; font-size: 18px; line-height: 1.4; }
.role__job { margin-top: 4px; font-size: 12.5px; font-weight: 700; line-height: 1.6; }
@media (min-width: 768px) {
  .roles__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .role__name { font-size: 17px; }
}
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 64px; align-items: end; }
  .about__msg { font-size: clamp(30px, 2.6vw, 36px); }
  .about__txt { font-size: 16px; }
  .roles { margin-top: 76px; }
  .roles__list { gap: 24px; margin-top: 24px; }
  .role__top { padding: 38px 0 24px; }
  .role__ico { width: 84px; }
  .role__body { padding: 14px 16px 18px; }
  .role__name { font-size: 21px; }
  .role__job { font-size: 13.5px; }
}

/* ---------- 8. Policy ---------- */
.subhd { display: grid; gap: 6px; }
.subhd__en { font-family: var(--f-px); font-size: 15px; letter-spacing: .2em; color: var(--red-d); }
.subhd__ttl { font-family: var(--f-disp); font-weight: 400; font-size: clamp(25px, 7vw, 32px); line-height: 1.45; }
.subhd__ttl b {
  font-weight: 400;
  font-size: 1.5em;
  color: var(--paper);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--red);
  padding-inline: .04em;
}
.notes { margin-top: 34px; display: grid; gap: 34px; }
.note {
  position: relative;
  padding: 30px 20px 24px;
  background: var(--bg, var(--paper));
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: var(--hard);
  rotate: var(--rot, 0deg);
  transition: rotate .3s var(--ease-out), translate .3s var(--ease-out), opacity .7s, transform .8s var(--ease-out);
}
.note:hover { rotate: 0deg; translate: 0 -3px; }
.note__no { font-family: var(--f-px); font-size: 14px; letter-spacing: .14em; color: var(--red-d); }
.note__ico { position: absolute; right: 16px; top: 22px; width: 46px; animation: bob 2.4s ease-in-out infinite; }
.note__ttl { margin-top: 6px; padding-right: 56px; font-family: var(--f-disp); font-weight: 400; font-size: 21px; line-height: 1.5; }
.note__txt { margin-top: 12px; font-size: 14px; line-height: 1.95; }
@media (min-width: 1024px) {
  .subhd { justify-items: start; }
  .subhd__ttl { font-size: 38px; }
  .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 44px; }
  .note { padding: 34px 26px 28px; }
  .note__ttl { font-size: 22px; }
}

/* ---------- 9. Continue ---------- */
.cont { --edge: var(--ink); text-align: center; padding-block: 64px 76px; }
.cont__q {
  font-family: var(--f-px);
  font-size: clamp(44px, 14vw, 88px);
  line-height: 1;
  letter-spacing: .06em;
  color: var(--yellow);
  text-shadow: 4px 4px 0 var(--red);
}
.cont__count {
  margin: 12px auto 0;
  width: 1.3em; height: 1.2em;
  overflow: hidden;
  font-family: var(--f-px); font-size: 60px; line-height: 1.2;
  color: var(--paper);
}
.cont__count span { display: block; animation: count 10s steps(10) infinite; }
.cont__ttl { margin-top: 20px; font-family: var(--f-disp); font-weight: 400; font-size: clamp(22px, 6.2vw, 40px); line-height: 1.55; }
.cont__ttl em { font-style: normal; color: var(--yellow); }
.gmenu--cont { margin: 28px auto 0; max-width: 440px; text-align: left; }
.cont__px { display: flex; justify-content: center; align-items: flex-end; gap: 18px; margin-top: 34px; }
.cont__px > div { width: 48px; animation: bob 2.4s ease-in-out infinite; }
.cont__px > div:nth-child(2) { width: 64px; animation-delay: -.8s; }
.cont__px > div:nth-child(3) { animation-delay: -1.6s; }
@media (min-width: 1024px) {
  .cont { padding-block: 100px 108px; }
  .cont__count { font-size: 72px; }
  .cont__px > div { width: 60px; }
  .cont__px > div:nth-child(2) { width: 80px; }
}

/* ---------- 10. History ---------- */
.map { position: relative; display: grid; gap: 22px; }
.map::before {
  content: "";
  position: absolute; left: 25px; top: 12px; bottom: 12px;
  border-left: 4px dashed rgba(35, 24, 21, .35);
}
.map__item { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; align-items: start; }
.map__node {
  position: relative; z-index: 1;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--f-px); font-size: 17px; letter-spacing: .02em;
  transition: background .3s, color .3s, transform .45s var(--ease-pop);
}
.map__item.is-lit .map__node { background: var(--red); color: var(--ink); transform: rotate(-6deg); }
.map__card {
  padding: 12px 16px 14px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}
.map__date { font-family: var(--f-px); font-size: 14px; letter-spacing: .06em; color: var(--red-d); }
.map__ttl { font-weight: 900; font-size: 17px; line-height: 1.5; }
.map__txt { margin-top: 4px; font-size: 13.5px; line-height: 1.85; }
.map__item--goal .map__node { background: var(--yellow); font-size: 12px; }
.map__item--goal.is-lit .map__node { background: var(--yellow); color: var(--ink); }
.map__item--goal .map__card { background: var(--ink); color: var(--paper); }
.map__item--goal .map__ttl { color: var(--yellow); }
.map__item--goal .map__date { color: var(--paper); }
@media (min-width: 1024px) {
  .map { max-width: 1000px; margin: 0 auto; gap: 6px; }
  .map::before { left: 50%; margin-left: -2px; }
  .map__item { grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr); gap: 28px; align-items: center; }
  .map__node { grid-column: 2; grid-row: 1; width: 66px; height: 66px; font-size: 21px; }
  .map__item--goal .map__node { font-size: 15px; }
  .map__card { grid-column: 1; grid-row: 1; padding: 18px 24px 20px; border-radius: 16px; }
  .map__item:nth-child(odd) .map__card { text-align: right; }
  .map__item:nth-child(even) .map__card { grid-column: 3; }
  .map__ttl { font-size: 19px; }
  .map__txt { font-size: 14px; }
}

/* ---------- 11. Company ---------- */
.company__grid { display: grid; gap: 34px; }
.prof { padding: 4px 0; }
.prof dl > div { display: grid; grid-template-columns: 6.6em minmax(0, 1fr); }
.prof dl > div + div { border-top: 2px dashed var(--line); }
.prof dt { padding: 14px 8px 14px 18px; font-family: var(--f-px); font-size: 14px; color: var(--red-d); }
.prof dd { padding: 13px 18px 13px 4px; font-weight: 700; font-size: 14.5px; line-height: 1.75; }
.prof dd small { display: block; font-family: var(--f-px); font-size: 12px; letter-spacing: .08em; color: var(--mute); }
.prof dd a { color: var(--red-d); font-weight: 900; }
.can__ttl { font-family: var(--f-disp); font-weight: 400; font-size: 24px; line-height: 1.4; }
.can__sub { margin-top: 4px; font-weight: 700; font-size: 13.5px; color: var(--mute); }
.can__list { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.can__list li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 900; font-size: 14px; line-height: 1.6;
}
.can__list li::before { content: ""; width: 11px; height: 11px; background: var(--red); border: 2px solid var(--ink); flex: 0 0 auto; }
.can__list li.etc { background: transparent; border-style: dashed; box-shadow: none; font-family: var(--f-px); font-weight: 400; }
.can__list li.etc::before { display: none; }
.js .can__list li { opacity: 0; transform: scale(.7); transition: transform .45s var(--ease-pop), opacity .3s; }
.js .can__list.is-in li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 55ms); }
@media (min-width: 1024px) {
  .company__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .prof dl > div { grid-template-columns: 8em minmax(0, 1fr); }
  .prof dt { padding: 18px 10px 18px 28px; font-size: 15px; }
  .prof dd { padding: 17px 28px 17px 4px; font-size: 15.5px; }
  .can { padding-top: 8px; }
  .can__ttl { font-size: 28px; }
  .can__list li { font-size: 15px; }
}

/* ---------- 12. Contact ---------- */
.contact__grid { display: grid; gap: 40px; }
.contact__big { font-family: var(--f-disp); font-weight: 400; font-size: clamp(25px, 7.2vw, 40px); line-height: 1.55; }
.contact__big em { font-style: normal; color: var(--red); text-shadow: 3px 3px 0 var(--ink); }
.contact__txt { margin-top: 14px; font-weight: 700; font-size: 14.5px; line-height: 1.95; }
.kinds { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.kinds li {
  padding: 0 10px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-family: var(--f-px); font-size: 13px; line-height: 1.8;
}
.contact__px { display: none; }

.form { padding: 30px 18px 24px; }
.form__lead { font-size: 12.5px; color: var(--mute); font-weight: 700; }
.form__row { display: grid; gap: 6px; margin-top: 18px; }
.form__label { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 14px; }
.req, .opt { padding: 0 8px; border-radius: 6px; font-size: 10.5px; font-weight: 900; line-height: 1.8; }
.req { background: var(--red); color: var(--ink); }
.opt { background: var(--cream-2); color: var(--ink); border: 1px solid var(--line); }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 500;
  transition: box-shadow .2s, border-color .2s, background .2s;
}
.form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4h8L6 9z' fill='%23231815'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
}
.form textarea { min-height: 170px; resize: vertical; line-height: 1.8; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(240, 96, 96, .3); }
.form [aria-invalid="true"] { border-color: var(--red) !important; background-color: #fff3f1; }
.form__hint { font-size: 12px; color: var(--mute); }
.form__err { font-size: 12.5px; font-weight: 700; color: var(--red-d); }
.form__err:empty { display: none; }
.form__agree { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; font-weight: 700; line-height: 1.7; cursor: pointer; }
.form__agree input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); }
.form__agree a { color: var(--red-d); }
.form__submit { width: 100%; margin-top: 24px; font-family: var(--f-disp); }
.form__submit:disabled { opacity: .6; cursor: wait; }
.form__status { margin-top: 14px; font-weight: 900; font-size: 14px; text-align: center; }
.form__status.is-ok { color: var(--green); }
.form__status.is-ng { color: var(--red-d); }
.form__note { margin-top: 12px; font-size: 12px; color: var(--mute); text-align: center; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 768px) {
  .form { padding: 38px 30px 30px; }
  .form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
}
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
  .contact__intro { position: sticky; top: 120px; }
  .contact__big { font-size: 42px; }
  .contact__txt { font-size: 15.5px; }
  .contact__px { display: flex; align-items: flex-end; gap: 14px; margin-top: 36px; }
  .contact__px > div { width: 72px; animation: bob 2.4s ease-in-out infinite; }
  .contact__px > div:nth-child(2) { width: 56px; animation-delay: -.8s; }
  .contact__px > div:nth-child(3) { width: 46px; animation-delay: -1.6s; }
  .form { padding: 44px 40px 36px; }
}

/* ---------- 13. Footer ---------- */
.foot { --edge: var(--ink); padding: 48px 0 40px; }
.foot__in { display: grid; gap: 22px; justify-items: center; text-align: center; }
.foot__brand .brand { margin: 0; }
.foot__brand .brand__name { font-size: 34px; }
.foot__catch { margin-top: 10px; font-size: 13px; font-weight: 700; color: rgba(255, 253, 248, .8); }
.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-family: var(--f-px); font-size: 14px; letter-spacing: .08em; }
.foot__nav a { color: var(--paper); text-decoration: none; }
.foot__nav a:hover { color: var(--yellow); }
.foot__sns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.foot__sns a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 2px 12px;
  border: 2px solid rgba(255, 253, 248, .35);
  border-radius: 8px;
  color: var(--paper);
  font-family: var(--f-px); font-size: 13px;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.foot__sns a::after { content: ""; width: 7px; height: 9px; background: currentColor; clip-path: var(--tri); }
.foot__sns a:hover { border-color: var(--yellow); color: var(--yellow); }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; font-size: 12px; color: rgba(255, 253, 248, .65); }
.foot__legal a { color: rgba(255, 253, 248, .88); text-decoration: none; }
.foot__legal a:hover { text-decoration: underline; }
.foot__copy { font-family: var(--f-px); letter-spacing: .06em; }
@media (min-width: 1024px) {
  .foot { padding: 60px 0 44px; }
  .foot__in {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "brand nav" "brand sns" "legal legal";
    gap: 14px 48px;
    align-items: center;
    justify-items: stretch;
    text-align: left;
  }
  .foot__brand { grid-area: brand; }
  .foot__nav { grid-area: nav; justify-content: flex-end; font-size: 15px; }
  .foot__sns { grid-area: sns; justify-content: flex-end; }
  .foot__legal { grid-area: legal; justify-content: space-between; margin-top: 18px; padding-top: 18px; border-top: 2px dashed rgba(255, 253, 248, .2); }
}

/* ---------- 14. Menu / To top ---------- */
.menu {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(35, 24, 21, .6);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__panel {
  position: absolute; left: 12px; right: 12px; top: 12px;
  max-width: 520px;
  max-height: calc(100% - 24px);
  margin: 0 auto;
  overflow-y: auto;
  padding: 20px 20px 24px;
  background-color: var(--ink);
  color: var(--paper);
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, .12) 1.2px, transparent 1.8px);
  background-size: 20px 20px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 7px var(--paper), 6px 6px 0 var(--red);
  transform: translateY(-10px) scale(.97);
  transition: transform .3s var(--ease-out);
}
.menu.is-open .menu__panel { transform: none; }
.menu__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 0 8px; }
.menu__ttl { font-family: var(--f-px); font-size: 32px; letter-spacing: .16em; color: var(--yellow); line-height: 1.2; }
.menu__close {
  position: relative;
  width: 44px; height: 44px;
  border: 3px solid var(--paper);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.menu__close::before, .menu__close::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 3px;
  background: var(--paper);
  transform: translate(-50%, -50%) rotate(45deg);
}
.menu__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.menu__list { margin-top: 10px; }
.menu__list a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 8px;
  border-bottom: 2px dashed rgba(255, 253, 248, .15);
  color: var(--paper);
  font-weight: 900; font-size: 17px;
  text-decoration: none;
}
.menu__list a::before { content: ""; flex: 0 0 auto; width: 10px; height: 13px; background: var(--yellow); clip-path: var(--tri); opacity: 0; }
.menu__list a:hover::before, .menu__list a:focus-visible::before, .menu__list a.is-current::before { opacity: 1; }
.menu__list small { margin-left: auto; font-family: var(--f-px); font-weight: 400; font-size: 12px; letter-spacing: .1em; color: rgba(255, 253, 248, .5); }
.menu .btn { width: 100%; margin-top: 22px; }

.totop {
  position: fixed; z-index: 45;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: 50px; height: 50px;
  display: grid; place-items: center; align-content: center; gap: 4px;
  background: var(--red); color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--f-px); font-size: 12px; line-height: 1; letter-spacing: .06em;
  text-decoration: none;
  transform: translateY(160%);
  transition: transform .35s var(--ease-out), box-shadow .12s;
}
.totop::before { content: ""; width: 14px; height: 10px; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.totop.is-on { transform: none; }
.totop.is-on:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
@media (min-width: 1024px) { .totop { width: 64px; height: 64px; right: 24px; bottom: 24px; font-size: 13px; } }

/* ---------- 15. Sub pages ---------- */
.legal__card { max-width: 860px; margin: 0 auto; padding: 26px 20px 30px; }
.legal__card h2 {
  margin-top: 30px;
  padding-left: 12px;
  border-left: 6px solid var(--red);
  font-weight: 900; font-size: 17px; line-height: 1.5;
}
.legal__card p, .legal__card li { margin-top: 10px; font-size: 14.5px; line-height: 1.95; }
.legal__card ul { list-style: disc; padding-left: 1.4em; }
.legal__card a { color: var(--red-d); font-weight: 700; }
.legal__date { margin-top: 32px !important; text-align: right; font-size: 13px !important; color: var(--mute); }
.legal__back { display: flex; justify-content: center; margin-top: 44px; }
@media (min-width: 1024px) {
  .legal__card { padding: 44px 52px 48px; }
  .legal__card h2 { font-size: 18px; }
  .legal__card p, .legal__card li { font-size: 15px; }
}

/* ---------- 16. Keyframes ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.7); } }
@keyframes wobble { 0%, 100% { transform: rotate(10deg) scale(1); } 50% { transform: rotate(16deg) scale(1.07); } }
@keyframes popIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes walk { from { left: -60px; } to { left: calc(100% + 60px); } }
@keyframes hop { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@keyframes ground { to { transform: translateX(-16px); } }
@keyframes jump {
  0%, 52%, 100% { transform: translateY(0); }
  64%, 76% { transform: translateY(-26px); }
  88% { transform: translateY(0); }
}
@keyframes coin { 0%, 100% { transform: translateY(0) scaleX(1); } 50% { transform: translateY(-4px) scaleX(.35); } }
@keyframes count { to { transform: translateY(-100%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .walker { display: none; }
}
