@charset "UTF-8";
#pageContent > .contentArea {
  padding-bottom: 0;
}

#pageResearchSlidegame {
  background: #f4f4f4;
  /* ============================================================
     404ページ用「循環2048」ゲーム
     - 4×4 / 白から紫の10段階 / 進捗リング表記 / 循環
     - スライド数カウンター・カラーチップ付き
     - スマホは 100svh 内に収める（スクロールなし）
     - 外部ライブラリなし・バニラ
     ============================================================ */
  /* ---- ゲーム全体（カウンター＋盤面＋チップの縦積み） ---- */
  /* スライド数カウンター */
  /* ---- 盤面 ---- */
  /* ---- カラーチップ（段階0→9の色遷移） ---- */
  /* ---- タイル ---- */
  /* 外周の進捗リング（段階ぶん時計回りに満ちる。background は JS で conic-gradient 指定） */
  /* 中央のフェイス（段階色。リングぶんだけ内側に収める） */
  /* 出現・合体の弾み（inner側で。位置transformと競合させない） */
  /* ---- ゲームメッセージ（詰み） ---- */
  /* ---- ボタン ---- */
  /* ---- 研究概要 ---- */
  /* ---- 背の低いビューポート向けの詰め ---- */
}
#pageResearchSlidegame .g404 {
  --board-max: 460px;
  --board-svh: 56svh;
  /* 盤面の高さ上限（スクロール防止） */
  --radius: 10px;
  --tile-radius: 8px;
  --anim: 80ms;
  /* スライドのキビキビ感 */
  --ease: cubic-bezier(.2, .8, .2, 1);
  box-sizing: border-box;
  width: 100%;
  max-width: var(--board-max);
  min-height: auto;
  margin: 0 auto;
  padding: 64px 12px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: -apple-system, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: #222;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
}
#pageResearchSlidegame .g404 * {
  box-sizing: border-box;
}
#pageResearchSlidegame .g404__msg {
  margin: 0;
}
#pageResearchSlidegame .g404__code {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
}
#pageResearchSlidegame .g404__title {
  margin: 10px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}
#pageResearchSlidegame .g404__lead {
  margin: 6px 0 0;
  font-size: 14px;
  color: #555;
}
#pageResearchSlidegame .g404__home {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
#pageResearchSlidegame .g404__home:hover {
  opacity: .6;
}
#pageResearchSlidegame .g404__hint {
  margin: 0;
  font-size: 11px;
  color: #999;
}
#pageResearchSlidegame .game {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(100%, var(--board-svh));
  margin: 0;
}
#pageResearchSlidegame .game__meter {
  font-size: 13px;
  color: #666;
  line-height: 1;
}
#pageResearchSlidegame .game__meter-val {
  font-weight: 700;
  color: #222;
  font-variant-numeric: tabular-nums;
}
#pageResearchSlidegame .game__board {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #c9c9c9;
  border-radius: var(--radius);
  touch-action: none;
  /* スワイプ時のスクロール抑制 */
}
#pageResearchSlidegame .grid-bg,
#pageResearchSlidegame .tile-container {
  position: absolute;
  inset: 0;
}
#pageResearchSlidegame .grid-bg {
  display: grid;
  grid-template-columns: repeat(var(--size, 4), 1fr);
  grid-template-rows: repeat(var(--size, 4), 1fr);
  gap: var(--gap, 10px);
  padding: var(--gap, 10px);
}
#pageResearchSlidegame .grid-bg .cell {
  border-radius: var(--tile-radius);
  background: #b5b5b5;
}
#pageResearchSlidegame .tile-container {
  padding: 0;
}
#pageResearchSlidegame .game__chips {
  display: flex;
  gap: 3px;
  width: 100%;
}
#pageResearchSlidegame .chip {
  flex: 1 1 0;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.14);
}
#pageResearchSlidegame .tile {
  position: absolute;
  top: 0;
  left: 0;
  transition: transform var(--anim) var(--ease);
  will-change: transform;
}
#pageResearchSlidegame .tile__inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--tile-radius);
  border: 1px solid rgba(0, 0, 0, 0.16);
  overflow: hidden;
  /* background（段階色）は JS でインライン指定 */
}
#pageResearchSlidegame .tile__ring {
  position: absolute;
  inset: 0;
}
#pageResearchSlidegame .tile__face {
  position: absolute;
  inset: 13%;
  border-radius: calc(var(--tile-radius) - 3px);
  /* background（段階色）は JS でインライン指定 */
}
#pageResearchSlidegame .tile--new .tile__inner {
  animation: g404-appear 110ms ease-out;
}
#pageResearchSlidegame .tile--merged .tile__inner {
  animation: g404-pop 110ms ease-out;
}
@keyframes g404-appear {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
@keyframes g404-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.16);
  }
  100% {
    transform: scale(1);
  }
}
#pageResearchSlidegame .game-message {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  z-index: 5;
  animation: g404-fade 260ms ease;
}
#pageResearchSlidegame .game-message.is-visible {
  display: flex;
}
#pageResearchSlidegame .game-message__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #222;
}
#pageResearchSlidegame .game-message__moves {
  margin: 0;
  font-size: 14px;
  color: #333;
  font-variant-numeric: tabular-nums;
}
@keyframes g404-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#pageResearchSlidegame .g404 .btn {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  color: #222;
  background: #fff;
  border: 1px solid #222;
  border-radius: 999px;
  padding: 8px 20px;
  transition: background .15s ease, color .15s ease;
}
#pageResearchSlidegame .g404 .btn:hover {
  background: #222;
  color: #fff;
}
#pageResearchSlidegame .g404__actions {
  margin: 0;
}
#pageResearchSlidegame .slideGameAbout {
  width: min(90vw, 940px);
  margin: 0 auto;
  padding: 72px 0 104px;
  border-top: 1px solid #2b2b2b;
}
#pageResearchSlidegame .slideGameAbout__label {
  margin: 0 0 18px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}
#pageResearchSlidegame .slideGameAbout__title {
  margin: 0 0 26px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.45;
}
#pageResearchSlidegame .slideGameAbout__body {
  max-width: 720px;
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.9;
}
#pageResearchSlidegame .slideGameAbout__body + .slideGameAbout__body {
  margin-top: 14px;
}
@media (max-height: 680px) {
  #pageResearchSlidegame .g404 {
    --board-svh: 52svh;
    gap: 8px;
    padding-top: 40px;
    padding-bottom: 64px;
  }
  #pageResearchSlidegame .g404__code {
    font-size: 34px;
  }
  #pageResearchSlidegame .g404__lead {
    margin: 4px 0 0;
    font-size: 12px;
  }
  #pageResearchSlidegame .g404__home {
    margin-top: 6px;
  }
}
@media (max-width: 767px) {
  #pageResearchSlidegame .g404 {
    padding-top: 44px;
    padding-bottom: 72px;
  }
  #pageResearchSlidegame .g404__code {
    font-size: 38px;
  }
  #pageResearchSlidegame .g404__title {
    font-size: 18px;
  }
  #pageResearchSlidegame .slideGameAbout {
    padding: 54px 0 76px;
  }
  #pageResearchSlidegame .slideGameAbout__title {
    font-size: 24px;
  }
}
