:root {
  --bg: #07111f;
  --panel: #101a2d;
  --panel-2: #17243a;
  --line: rgba(81, 214, 255, 0.32);
  --text: #f2f7ff;
  --muted: #a8b9d4;
  --accent: #35e7ff;
  --accent-2: #ffcf3f;
  --pink: #ff47c4;
  --green: #70ff7a;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  background:
    radial-gradient(circle at 18% 0%, rgba(53, 231, 255, 0.16), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(255, 71, 196, 0.12), transparent 30%),
    linear-gradient(180deg, #07111f 0%, #080b17 100%);
}

a {
  color: inherit;
}

.side-ad {
  position: fixed;
  top: 96px;
  z-index: 5;
  display: block;
  overflow: hidden;
  width: 220px;
  min-height: 560px;
  padding: 0;
  border: 1px solid rgba(255, 207, 63, 0.5);
  color: #fff6bf;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 207, 63, 0.13), rgba(255, 71, 196, 0.08)),
    rgba(12, 18, 34, 0.94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.side-ad:hover {
  transform: translateY(-2px);
  border-color: var(--accent-2);
  box-shadow: 0 20px 54px rgba(255, 207, 63, 0.18);
}

.side-ad-left {
  left: max(8px, calc((100vw - 1620px) / 2));
}

.side-ad-right {
  right: max(8px, calc((100vw - 1620px) / 2));
}

.tokage-side-ad img {
  display: block;
  width: 100%;
  min-height: 560px;
  object-fit: contain;
  background: rgba(3, 13, 16, 0.96);
}

.side-ad-caption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 7px 6px;
  color: #edfff5;
  background: rgba(3, 13, 16, 0.78);
  border: 1px solid rgba(53, 231, 255, 0.38);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.casino-return-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid rgba(53, 231, 255, 0.74);
  color: #06111d;
  background: linear-gradient(135deg, var(--accent), #8dfff6);
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(53, 231, 255, 0.26);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.casino-return-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(53, 231, 255, 0.44);
  filter: brightness(1.08);
}

.ad-label {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 24px;
  padding: 0 8px;
  color: #07111f;
  background: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ad-strip {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px dashed rgba(255, 207, 63, 0.6);
  color: #f8fbff;
  background:
    linear-gradient(90deg, rgba(255, 207, 63, 0.16), rgba(53, 231, 255, 0.08), rgba(255, 71, 196, 0.1)),
    rgba(13, 23, 40, 0.9);
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

.ad-strip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 207, 63, 0.95);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(255, 207, 63, 0.24),
    inset 0 0 24px rgba(53, 231, 255, 0.12);
}

.ad-strip:hover .ad-label {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.28),
    0 0 18px rgba(255, 207, 63, 0.85),
    0 0 34px rgba(255, 71, 196, 0.34);
  transform: scale(1.04);
}

.ad-strip:hover img {
  border-color: rgba(255, 207, 63, 0.82);
  box-shadow: 0 0 22px rgba(255, 207, 63, 0.2);
  filter: saturate(1.08) brightness(1.06);
}

.ad-strip strong {
  color: var(--accent-2);
  font-size: 20px;
  line-height: 1.25;
}

.ad-strip span:not(.ad-label) {
  color: #d8e8ff;
  font-weight: 800;
}

.ad-strip small {
  color: var(--muted);
  font-weight: 900;
}

.ad-strip-compact {
  grid-template-columns: auto auto minmax(0, 1fr);
}

.mizuki-ad {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr);
  gap: 16px;
  padding: 12px;
  border-style: solid;
  text-decoration: none;
}

.mizuki-ad img {
  display: block;
  width: 100%;
  aspect-ratio: 728 / 240;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.mizuki-ad-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.mizuki-ad-copy strong {
  color: var(--accent-2);
  font-size: 22px;
  line-height: 1.3;
}

.mizuki-ad-copy span:not(.ad-label) {
  color: #f5eec9;
  font-weight: 800;
  line-height: 1.55;
}

.site-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(20, 38, 66, 0.98), rgba(16, 19, 44, 0.96));
  box-shadow: var(--shadow);
  padding: 28px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--pink), var(--accent-2));
}

.hero-kicker {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.28;
}

h1 {
  margin-top: 6px;
  font-size: clamp(32px, 5vw, 58px);
  text-shadow: 0 0 22px rgba(53, 231, 255, 0.26);
}

.lead {
  max-width: 820px;
  margin: 18px 0 0;
  color: #d8e8ff;
  font-size: 17px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
}

.pill {
  border: 1px solid rgba(53, 231, 255, 0.38);
  background: rgba(53, 231, 255, 0.08);
  padding: 5px 12px;
}

.section {
  margin-top: 28px;
  border: 1px solid var(--line);
  background: rgba(13, 23, 40, 0.88);
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(22, 39, 66, 0.9);
}

.section-head h2 {
  font-size: 24px;
}

.section-body {
  padding: 22px;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.toc-grid a {
  display: block;
  padding: 12px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #9edcff;
  font-weight: 900;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
}

.toc-grid a:hover {
  color: #08111f;
  background: var(--accent);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.feature-link {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(53, 231, 255, 0.26);
  background: linear-gradient(135deg, rgba(53, 231, 255, 0.12), rgba(255, 71, 196, 0.08));
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.feature-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: #08111f;
  background: linear-gradient(135deg, var(--accent-2), #fff4a7);
  font-size: 38px;
  font-weight: 900;
}

.feature-title {
  color: var(--accent-2);
  font-size: 22px;
  font-weight: 900;
}

.feature-text {
  color: var(--muted);
}

.feature-arrow {
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
}

.game-card {
  display: block;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--panel);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 36px rgba(53, 231, 255, 0.18);
}

.game-card.is-soon {
  opacity: 0.62;
}

.game-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0b1221;
}

.game-card-body {
  padding: 12px 14px 14px;
}

.game-card-title {
  color: var(--accent-2);
  font-weight: 900;
  font-size: 18px;
}

.game-card-text {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.badge {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 9px;
  color: #06111f;
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #a8eaff;
  font-weight: 900;
  text-decoration: none;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 22px;
  align-items: center;
}

.article-hero img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.quick-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-list li,
.tip-box {
  border: 1px solid rgba(53, 231, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.label {
  display: block;
  color: var(--accent-2);
  font-weight: 900;
}

.strategy-flow {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.strategy-flow .step {
  position: relative;
  padding: 16px 16px 16px 56px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(18, 30, 50, 0.86);
}

.strategy-flow .step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #07111f;
  background: var(--accent-2);
  font-weight: 900;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--accent);
  background: rgba(53, 231, 255, 0.08);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.guide-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
}

.guide-table th,
.guide-table td {
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  color: var(--accent);
  background: rgba(53, 231, 255, 0.08);
}

.guide-table td:first-child {
  color: var(--accent-2);
  font-weight: 900;
}

.note {
  margin: 14px 0 0;
  color: #d8e8ff;
  border-left: 5px solid var(--accent);
  background: rgba(53, 231, 255, 0.08);
  padding: 12px 14px;
}

.notice {
  color: #d8e8ff;
  border-left: 5px solid var(--pink);
  background: rgba(255, 71, 196, 0.08);
  padding: 14px 16px;
}

.advisor-panel {
  border: 1px solid rgba(53, 231, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(53, 231, 255, 0.08), rgba(255, 71, 196, 0.06)),
    rgba(7, 17, 31, 0.92);
  box-shadow: inset 0 0 24px rgba(53, 231, 255, 0.08);
  padding: 18px;
}

.advisor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.advisor-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.advisor-head h3 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.25;
}

.advisor-refresh {
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid rgba(53, 231, 255, 0.64);
  color: var(--accent);
  background: rgba(53, 231, 255, 0.08);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.advisor-refresh:hover {
  transform: translateY(-2px);
  background: rgba(53, 231, 255, 0.18);
  box-shadow: 0 0 18px rgba(53, 231, 255, 0.22);
}

.advisor-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.advisor-status {
  min-height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
}

.advisor-status span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.advisor-status strong {
  display: block;
  margin-top: 4px;
  color: var(--accent-2);
  font-size: 20px;
  line-height: 1.25;
}

.advisor-current {
  color: #d8e8ff;
  border-left: 4px solid var(--accent);
  background: rgba(53, 231, 255, 0.08);
  padding: 10px 12px;
  margin-bottom: 14px;
  font-weight: 800;
}

.advisor-list {
  display: grid;
  gap: 10px;
}

.advisor-message {
  border: 1px solid rgba(255, 207, 63, 0.22);
  background: rgba(255, 207, 63, 0.07);
  padding: 14px;
}

.advisor-message strong {
  display: block;
  color: var(--accent-2);
  font-size: 17px;
  line-height: 1.35;
}

.advisor-message p {
  margin: 6px 0 0;
  color: #eef6ff;
  font-weight: 700;
  line-height: 1.65;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  cursor: pointer;
  border: 1px solid rgba(53, 231, 255, 0.38);
  color: var(--text);
  background: rgba(53, 231, 255, 0.08);
  padding: 9px 14px;
  font: inherit;
  font-weight: 900;
}

.filter-btn.active,
.filter-btn:hover {
  color: #06111f;
  background: var(--accent);
}

.trophy-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.trophy-stat {
  border: 1px solid rgba(53, 231, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.trophy-stat strong {
  display: block;
  color: var(--accent);
  font-size: 30px;
  line-height: 1.2;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.achievement-grid .card {
  position: relative;
  min-height: 154px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 30, 50, 0.86);
  padding: 16px;
}

.achievement-grid .card.unlocked {
  border-color: rgba(255, 207, 63, 0.78);
  background: linear-gradient(135deg, rgba(255, 207, 63, 0.16), rgba(18, 30, 50, 0.92));
}

.achievement-grid .card.locked {
  opacity: 0.58;
}

.achievement-grid .card.hidden {
  display: none;
}

.achievement-grid .icon-wrapper {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
  color: #08111f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 25px;
}

.achievement-grid .title {
  display: block;
  color: var(--accent-2);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.trophy-desc {
  display: block;
  margin-top: 8px;
  color: #d8e8ff;
  font-size: 14px;
  line-height: 1.55;
}

.trophy-id {
  position: absolute;
  right: 12px;
  top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.footer {
  margin-top: 28px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 820px) {
  .side-ad {
    display: none;
  }

  .site-shell {
    width: min(100% - 18px, 1120px);
    padding-top: 14px;
  }

  .ad-strip,
  .ad-strip-compact {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mizuki-ad {
    grid-template-columns: 1fr;
  }

  .ad-strip small {
    grid-column: 1 / -1;
  }

  .hero,
  .section-body {
    padding: 18px;
  }

  .toc-grid,
  .game-grid,
  .achievement-grid,
  .advisor-status-grid,
  .trophy-stats,
  .quick-list,
  .article-hero {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .feature-icon {
    width: 62px;
    height: 62px;
    font-size: 28px;
  }

  .feature-arrow {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
    line-height: 1.68;
  }

  .site-shell {
    width: min(100% - 12px, 1120px);
    padding-bottom: 32px;
  }

  .hero {
    padding: 16px;
  }

  h1 {
    font-size: clamp(28px, 11vw, 40px);
  }

  .lead {
    font-size: 15px;
  }

  .meta-row,
  .pill {
    width: 100%;
  }

  .pill {
    display: block;
  }

  .section {
    margin-top: 18px;
  }

  .section-head {
    padding: 14px 16px;
    gap: 8px;
  }

  .section-head h2 {
    font-size: 21px;
  }

  .section-body {
    padding: 14px;
  }

  .toc-grid a {
    padding: 11px 12px;
  }

  .game-card-body,
  .feature-link,
  .quick-list li,
  .tip-box {
    padding: 12px;
  }

  .strategy-flow .step {
    padding: 14px 14px 14px 48px;
  }

  .strategy-flow .step::before {
    left: 12px;
    top: 14px;
    width: 24px;
    height: 24px;
  }

  .filter-btn {
    width: 100%;
  }

  .ad-strip,
  .ad-strip-compact {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mizuki-ad {
    text-align: left;
  }

  .mizuki-ad-copy {
    text-align: left;
  }

  .ad-label {
    justify-self: center;
  }

  .achievement-grid .card {
    min-height: auto;
  }

  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table {
    border-collapse: separate;
    border-spacing: 0;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr {
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(18, 30, 50, 0.86);
  }

  .data-table td {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 12px;
  }

  .data-table td:last-child {
    border-bottom: 0;
  }

  .data-table td::before {
    display: block;
    margin-bottom: 2px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
  }

  .operation-table td:nth-child(1)::before {
    content: "操作";
  }

  .operation-table td:nth-child(2)::before {
    content: "効果";
  }

  .operation-table td:nth-child(3)::before {
    content: "使いどころ";
  }

  .training-table td:nth-child(1)::before {
    content: "育成項目";
  }

  .training-table td:nth-child(2)::before {
    content: "上がるもの";
  }

  .training-table td:nth-child(3)::before {
    content: "おすすめ度";
  }

  .material-table td:nth-child(1)::before {
    content: "探索先";
  }

  .material-table td:nth-child(2)::before {
    content: "通常素材";
  }

  .material-table td:nth-child(3)::before {
    content: "レア素材";
  }

  .material-table td:nth-child(4)::before {
    content: "メモ";
  }

  .facility-table td:nth-child(1)::before {
    content: "設備";
  }

  .facility-table td:nth-child(2)::before {
    content: "必要素材";
  }

  .facility-table td:nth-child(3)::before {
    content: "役割";
  }
}
