:root {
  --asogames-navy: #14283a;
  --asogames-deep: #10183f;
  --asogames-cyan: #14c9e8;
  --asogames-pink: #ff4d94;
  --asogames-mint: #eefafb;
}

/* 既存ヘッダーは作り直さず、ロゴだけを画面中央へ置く。 */
html body #header #site-info {
  position: relative;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}
html body #header.header-type1 #site-info .tn-logo-size.asogames-home-logo,
html body #header.header-type1 #site-info .tn-logo-size.asogames-home-logo a,
html body #header #site-info .asogames-home-logo,
html body #header #site-info .asogames-home-logo a {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: min(300px, 42vw) !important;
  max-width: calc(100vw - 250px) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}
html body #header.header-type1 #site-info .tn-logo-size.asogames-home-logo img,
html body #header #site-info .asogames-home-logo img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 74px !important;
  object-fit: contain !important;
}

.asogames-home-pickup {
  width: min(1120px, calc(100% - 40px));
  margin: 28px auto 32px;
}
.asogames-home-pickup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.asogames-home-pickup-heading { margin: 0 !important; }
.asogames-home-pickup-controls { display: flex; gap: 8px; }
.asogames-home-pickup-arrow[hidden],
.asogames-home-pickup-dots[hidden] { display: none !important; }
.asogames-home-pickup-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 2px 10px;
  cursor: grab;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* pan-x pan-y: 指での横スワイプをブラウザ純正スクロールに任せる(pan-yのみだと横に動かずカクつく) */
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}
.asogames-home-pickup-viewport::-webkit-scrollbar { display: none; }
.asogames-home-pickup-viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.asogames-home-pickup-track { display: flex; align-items: flex-start; gap: 12px; }
.asogames-home-pickup-card {
  position: relative;
  flex: 0 0 calc((100% - 60px) / 6);
  overflow: visible;
  color: #172044 !important;
  text-decoration: none !important;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  scroll-snap-align: start;
}
.asogames-home-pickup-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--asogames-deep), #26366e);
  border-radius: 6px;
}
.asogames-home-pickup-card:focus-visible {
  outline: 3px solid var(--asogames-cyan);
  outline-offset: 3px;
  border-radius: 8px;
}
.asogames-home-pickup-media.is-image-missing::after {
  content: "遊GAMES ランキング";
  display: grid;
  place-items: center;
  height: 100%;
  color: #fff;
  font-weight: 900;
}
.asogames-home-pickup-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.asogames-home-pickup-body { display: block; padding: 8px 0 2px; }
.asogames-home-pickup-rank {
  position: absolute;
  z-index: 2;
  top: 4px;
  left: 4px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--asogames-pink), #d81768);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(16, 24, 63, .28);
}
.asogames-home-pickup-label {
  position: absolute;
  z-index: 1;
  top: 4px;
  right: 4px;
  display: inline-block;
  margin: 0;
  padding: 3px 7px;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  background: rgba(20, 40, 58, .92);
  border-radius: 4px;
}
.asogames-home-pickup-title {
  display: block;
  overflow: visible;
  font-size: 12px;
  line-height: 1.45;
}
.asogames-home-pickup-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--asogames-navy);
  font-size: 23px;
  line-height: 1;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #dce6ed;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
}
.asogames-home-pickup-dots { display: flex; justify-content: center; gap: 8px; margin-top: 3px; }
.asogames-home-pickup-dot {
  width: 10px;
  min-width: 10px;
  height: 10px;
  min-height: 10px;
  padding: 0;
  background: #cbd7de;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.asogames-home-pickup-dot[aria-selected="true"] { background: var(--asogames-pink); }

.asogames-home-sidebar-panels { display: grid; gap: 26px; }
.asogames-home-ranking,
.asogames-home-genres {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe8ee;
  border-radius: 14px;
  box-shadow: 0 12px 28px -22px rgba(20, 40, 58, .55);
}
.asogames-home-sidebar-heading {
  margin: 0;
  padding: 14px 15px 12px;
  color: var(--asogames-navy);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
  background: linear-gradient(90deg, #effcfd, #fff);
  border-bottom: 3px solid var(--asogames-pink);
}
.asogames-home-ranking-list { margin: 0; padding: 0; list-style: none; }
.asogames-home-ranking-row { margin: 0; padding: 0; border-bottom: 1px solid #edf2f5; }
.asogames-home-ranking-row:last-child { border-bottom: 0; }
.asogames-home-ranking-item {
  display: grid;
  grid-template-columns: 30px 52px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 68px;
  padding: 8px 10px;
  color: var(--asogames-navy) !important;
  text-decoration: none !important;
  transition: background .18s ease;
}
.asogames-home-ranking-item:hover { background: var(--asogames-mint); }
.asogames-home-ranking-number { color: var(--asogames-pink); font-size: 21px; font-weight: 900; font-style: italic; text-align: center; }
.asogames-home-ranking-icon { display: block; width: 52px; height: 52px; object-fit: cover; border-radius: 12px; }
.asogames-home-ranking-copy { min-width: 0; }
.asogames-home-ranking-name { display: block; overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; }
.asogames-home-ranking-genre { display: block; margin-top: 3px; color: #7a8b97; font-size: 10.5px; }
.asogames-home-genre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.asogames-home-genre-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 8px 5px;
  color: var(--asogames-navy) !important;
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
  background: #f3fbfc;
  border: 1px solid #d4e8ec;
  border-radius: 10px;
}
.asogames-home-genre-icon { color: var(--asogames-cyan); font-size: 14px; }

@media (min-width: 768px) and (max-width: 1199px) {
  .asogames-home-pickup-card { flex-basis: calc((100% - 36px) / 4); }
}

@media (max-width: 767px) {
  html body #header.header-type1 #site-info .tn-logo-size.asogames-home-logo,
  html body #header.header-type1 #site-info .tn-logo-size.asogames-home-logo a,
  html body #header #site-info .asogames-home-logo,
  html body #header #site-info .asogames-home-logo a {
    width: min(210px, 54vw) !important;
    max-width: calc(100vw - 112px) !important;
  }
  html body #header.header-type1 #site-info .tn-logo-size.asogames-home-logo img,
  html body #header #site-info .asogames-home-logo img { max-height: 58px !important; }
  .asogames-home-pickup { width: calc(100% - 28px); margin: 22px auto 26px; }
  .asogames-home-pickup-track { gap: 12px; }
  .asogames-home-pickup-card { flex-basis: 84%; }
  .asogames-home-pickup-body { padding: 10px 0 4px; }
  .asogames-home-pickup-label { padding: 4px 9px; font-size: 10px; }
  .asogames-home-pickup-title { font-size: 13px; line-height: 1.55; }
  .asogames-home-pickup-arrow { width: 38px; height: 38px; }
  .asogames-home-sidebar-panels { margin-top: 22px; }
  .asogames-home-ranking-item { min-height: 74px; grid-template-columns: 32px 56px minmax(0, 1fr); }
  .asogames-home-ranking-icon { width: 56px; height: 56px; }
  .asogames-home-ranking-name { font-size: 13.5px; }
  .asogames-home-genre-item { min-height: 48px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .asogames-home-pickup-viewport { scroll-behavior: auto !important; }
  .asogames-home-ranking-item { transition: none; }
}

/* ゲームストア案内ページ */
body.asogames-redirect-page {
  min-height: 100vh;
  margin: 0;
  color: var(--asogames-navy);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  background: #eff7f8;
}
.asogames-redirect-page * { box-sizing: border-box; }
.asogames-redirect-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 10px 24px;
  background: #fff;
  border-bottom: 1px solid #e1eaee;
}
.asogames-redirect-header-logo { display: block; width: min(280px, 42vw); height: auto; }
.asogames-redirect-back {
  position: absolute;
  right: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  color: #526170 !important;
  font-weight: 800;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid #d8e2e8;
  border-radius: 999px;
}
.asogames-redirect-main { min-height: calc(100vh - 84px); padding: 44px 24px 70px; }
.asogames-redirect-desktop { max-width: 820px; margin: 0 auto; }
.asogames-redirect-title { margin: 0 0 26px; font-size: 29px; text-align: center; }
.asogames-redirect-download-panel {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 30px;
  background: #fff;
  border: 1px solid #e0eaed;
  border-radius: 20px;
  box-shadow: 0 18px 48px -32px rgba(20, 40, 58, .6);
}
.asogames-redirect-qr { display: block; width: 230px; height: 230px; object-fit: contain; background: #fff; border-radius: 10px; }
.asogames-redirect-kicker { margin: 0 0 7px; color: #29aeb7; font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.asogames-redirect-lead { margin: 0 0 18px; color: #5e6f7b; font-size: 14px; line-height: 1.8; }
.asogames-redirect-store-buttons { display: flex; gap: 10px; }
.asogames-redirect-store,
.asogames-redirect-primary-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 18px;
  color: #fff !important;
  font-weight: 900;
  text-align: center;
  text-decoration: none !important;
  background: #050505;
  border-radius: 9px;
}
.asogames-redirect-store { flex: 1; }
.asogames-redirect-mobile {
  display: none;
  max-width: 440px;
  min-height: 620px;
  margin: 0 auto;
  text-align: center;
}
.asogames-redirect-status { margin: 0 0 22px; color: #399ba2; font-size: 13px; font-weight: 800; }
.asogames-redirect-app-icon { display: block; width: 92px; height: 92px; margin: 0 auto 18px; object-fit: cover; border-radius: 20px; box-shadow: 0 12px 28px -18px rgba(20, 40, 58, .7); }
.asogames-redirect-help { margin: 0 0 12px; color: #657681; font-size: 14px; line-height: 1.7; }
.asogames-redirect-primary-store { min-width: 270px; }
.asogames-redirect-return {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  min-height: 54px;
  margin: 22px auto 0;
  color: #fff !important;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none !important;
  background: linear-gradient(135deg, var(--asogames-cyan), #2ca9ad);
  border-radius: 999px;
  box-shadow: 0 16px 30px -20px rgba(20, 201, 232, .9);
}
.asogames-redirect-not-found { max-width: 620px; margin: 80px auto; text-align: center; }
.asogames-redirect-footer { padding: 22px; color: #b8c4ce; font-size: 12px; text-align: center; background: var(--asogames-navy); }

body.asogames-redirect-platform-ios .asogames-redirect-desktop,
body.asogames-redirect-platform-android .asogames-redirect-desktop { display: none; }
body.asogames-redirect-platform-ios .asogames-redirect-mobile,
body.asogames-redirect-platform-android .asogames-redirect-mobile { display: block; }

@media (max-width: 767px) {
  .asogames-redirect-header { min-height: 68px; padding: 8px 12px; }
  .asogames-redirect-header-logo { width: min(190px, 48vw); }
  .asogames-redirect-back { right: 12px; min-height: 42px; padding: 0 12px; font-size: 12px; }
  .asogames-redirect-main { min-height: calc(100vh - 68px); padding: 80px 18px 60px; }
  .asogames-redirect-mobile { min-height: 560px; }
  .asogames-redirect-title { font-size: 21px; }
  .asogames-redirect-primary-store { width: min(300px, 100%); min-width: 0; }
}

/* ===== 記事下再構成(スマホ・2026-07-21): 人気記事リストと運営情報 ===== */
.asogames-art-popular,
.asogames-art-links { background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(16, 24, 63, .06); padding: 16px 14px; margin: 18px 0; }
/* MSYのRECOMMEND同様の2列カードグリッド(2026-07-21ユーザー指定) */
.asogames-art-popular-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 0 2px; }
.asogames-art-popular-card { display: block; overflow: hidden; background: #fff; border: 1px solid #e3ecf1; border-radius: 12px; box-shadow: 0 3px 10px rgba(16, 24, 63, .06); color: #172044 !important; text-decoration: none !important; }
.asogames-art-popular-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #10183f, #26366e); }
.asogames-art-popular-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.asogames-art-popular-rank { position: absolute; top: 4px; left: 4px; z-index: 2; display: grid; place-items: center; width: 24px; height: 24px; color: #fff; font-size: 12px; font-weight: 900; background: linear-gradient(135deg, #ff4d94, #d81768); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(16, 24, 63, .28); }
.asogames-art-popular-label { position: absolute; top: 4px; right: 4px; z-index: 1; max-width: 62%; overflow: hidden; padding: 3px 7px; color: #fff; font-size: 9px; font-weight: 900; white-space: nowrap; text-overflow: ellipsis; background: rgba(20, 40, 58, .92); border-radius: 4px; }
.asogames-art-popular-date { position: absolute; bottom: 4px; left: 6px; z-index: 1; padding: 2px 6px; color: #fff; font-size: 9.5px; font-weight: 700; background: rgba(20, 40, 58, .78); border-radius: 4px; }
.asogames-art-popular-title { display: block; padding: 9px 10px 11px; font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.asogames-art-links-list { list-style: none; margin: 0; padding: 0; }
.asogames-art-links-list li { border-top: 1px solid #edf2f4; }
.asogames-art-links-list li:first-child { border-top: 0; }
.asogames-art-links-list a { display: flex; align-items: center; padding: 12px 4px; color: #172044 !important; font-size: 13px; font-weight: 700; text-decoration: none !important; border: 0 !important; }
.asogames-art-links-list a::after { content: "›"; margin-left: auto; color: #c3ced6; }
@media (max-width: 767px) {
  body.single .asogames-home-ranking,
  body.single .asogames-home-genres { background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(16, 24, 63, .06); padding: 16px 14px; margin: 18px 0; }
}

.asogames-art-popular-heading { letter-spacing: .08em; }
.asogames-art-popular-sub { margin-left: 10px; color: #8395a7; font-size: 11px; font-weight: 600; letter-spacing: 0; }

/* ===== 記事下 GENRE(MSY型・2026-07-21) ===== */
.asogames-art-genres { background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(16, 24, 63, .06); padding: 18px 14px; margin: 18px 0; }
.asogames-art-genres-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.asogames-art-genres-mark { display: grid; place-items: center; width: 44px; height: 44px; color: #14c9e8; font-size: 20px; background: #e9fafd; border-radius: 50%; }
.asogames-art-genres-eyebrow { display: block; color: #0aa3bd; font-size: 10.5px; font-weight: 800; letter-spacing: .22em; }
.asogames-art-genres-title { margin: 0; color: #172044; font-size: 17px; font-weight: 900; line-height: 1.3; }
.asogames-art-genres-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 84px; gap: 8px; }
.asogames-art-genres-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 84px; padding: 0 4px; color: #172044 !important; text-decoration: none !important; background: #fff; border: 1px solid #e3ecf1; border-radius: 10px; box-sizing: border-box; overflow: hidden; }
.asogames-art-genres-icon { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; color: #14c9e8; font-size: 18px; line-height: 1; }
.asogames-art-genres-label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; width: 100%; font-size: 9.5px; font-weight: 700; line-height: 1.25; text-align: center; white-space: normal; overflow: hidden; word-break: break-all; }

/* ===== 記事下 濃紺フッター(MSY型・2026-07-21) ===== */
.asogames-art-footer { margin: 24px calc(50% - 50vw) 0; padding: 34px 22px 30px; background: #10183f; }
.asogames-art-footer-logo { display: block; height: 34px; width: auto; margin: 0 0 14px; }
.asogames-art-footer-tagline { margin: 0 0 18px; color: #b8c4ce; font-size: 13px; line-height: 1.7; }
.asogames-art-footer-divider { height: 1px; margin: 0 0 6px; background: rgba(255, 255, 255, .14); }
.asogames-art-footer-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; margin: 0; padding: 8px 0 14px; list-style: none; }
.asogames-art-footer-links a { display: block; padding: 11px 0; color: #cfd9e2 !important; font-size: 13px; text-decoration: none !important; border: 0 !important; }
.asogames-art-footer-copy { margin: 14px 0 0; color: #8895a8; font-size: 11px; text-align: center; }

@media (max-width: 767px) {
  /* MSY型フッターを置くため、JIN標準フッター(コピーライト等)は記事ページでは畳む(ウィジェット内のCSS/JSは非表示でも動作する) */
  body.single #footer-widget-area,
  body.single #copyright,
  body.single #copyright-center,
  body.single .page-top-footer,
  body.single footer .footer-inner,
  body.home #footer-widget-area,
  body.home #copyright,
  body.home #copyright-center,
  body.home .page-top-footer,
  body.home footer .footer-inner { display: none !important; }
  body.single #sidebar,
  body.home #sidebar { padding-bottom: 0 !important; margin-bottom: 0 !important; }
}
