:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-soft: #f0efeb;
  --header-bg: rgba(247, 247, 244, 0.94);
  --text: #151515;
  --muted: #62615d;
  --line: #dedbd3;
  --line-strong: #c7c2b8;
  --accent: #d30f24;
  --accent-dark: #9e0c1a;
  --ink: #111111;
  --shadow: 0 14px 32px rgba(20, 20, 20, 0.1);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.7;
}

body.age-blocked main,
body.age-blocked footer {
  visibility: hidden;
}

body.is-filter-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.site-nav a,
.site-nav button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface-soft);
}

.site-nav button.r18-button,
.site-nav a.r18-link {
  border-color: #f0a8b9;
  background: #ffdce7;
  color: var(--accent-dark);
}

.site-nav button.r18-reset-button {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--muted);
}

.button {
  border-color: var(--line-strong);
  background: var(--surface);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.page-main {
  padding: 42px 0 78px;
}

.section {
  padding: 28px 0 52px;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.section-title {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-title {
  font-size: clamp(24px, 3vw, 36px);
}

.lead {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.breadcrumb {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--accent-dark);
  font-weight: 800;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.filter-shell {
  position: relative;
  margin: 0 0 34px;
}

.filter-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(880px, 100%);
  min-height: 56px;
  margin: 0 auto;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.filter-trigger:hover,
.filter-trigger[aria-expanded="true"] {
  background: #e5e3df;
}

.filter-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(247, 247, 244, 0.78);
  backdrop-filter: blur(3px);
}

.filter-panel {
  position: relative;
  display: grid;
  width: min(1080px, 100%);
  max-height: calc(100vh - 64px);
  overflow: auto;
  gap: 26px;
  padding: 34px;
  border-radius: 28px;
  background: var(--surface-soft);
  box-shadow: 0 24px 72px rgba(20, 20, 20, 0.24);
}

.filter-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.filter-panel-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.filter-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.filter-group {
  display: grid;
  gap: 12px;
}

.filter-label {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #d7d7d7;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.tag-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.filter-submit {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: #4e4e4e;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.filter-submit:hover {
  background: var(--ink);
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
}

.game-card {
  min-width: 0;
  color: var(--text);
  transition: transform 0.18s ease;
}

.game-card[data-card-href],
.media-card[data-card-href],
.news-row[data-card-href] {
  cursor: pointer;
}

.game-card:hover,
.game-card:focus-within {
  transform: translateY(-2px);
}

.game-card:focus-visible {
  outline: 3px solid rgba(211, 15, 36, 0.32);
  outline-offset: 5px;
}

.game-card-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #202124;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.game-card-visual .card-art {
  z-index: 0;
}

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

.game-card-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
}

.game-card-brand {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.game-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.game-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e7e5e0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

a.game-tag:hover,
a.game-tag.is-active {
  background: var(--ink);
  color: #ffffff;
}

.media-card {
  position: relative;
  display: flex;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #202124;
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform 0.18s ease;
}

.media-card:hover,
.media-card:focus-within {
  transform: translateY(-2px);
}

.media-card:focus-visible {
  outline: 3px solid rgba(211, 15, 36, 0.32);
  outline-offset: 3px;
}

.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.7));
}

.card-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #3e5f6d;
}

.card-art.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-garden {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 44%),
    repeating-linear-gradient(100deg, transparent 0 18px, rgba(255, 255, 255, 0.08) 18px 20px),
    linear-gradient(135deg, #2b776f, #95bb59 48%, #e2a93d);
}

.art-aritodom {
  background: #f2f2f2 url("/assets/aritodom-logo.png") center / cover no-repeat;
}

.art-stream {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 16px),
    linear-gradient(135deg, #1d63bb, #4bb4d8 45%, #e64c83);
}

.art-post {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 38%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, 0.1) 14px 16px),
    linear-gradient(135deg, #755a36, #c8914d 48%, #f1d26a);
}

.art-kitchen {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, #c84f32, #e0a33e 48%, #466f54);
}

.art-skyline {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 40%),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, #263c75, #5476a7 50%, #e6a24a);
}

.art-code {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 44%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 12px),
    linear-gradient(135deg, #1f222e, #46506d 48%, #51a18d);
}

.art-azabase {
  background: #ffffff url("/assets/azabase-logo.png") center / cover no-repeat;
}

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 16px;
  color: #ffffff;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #151515;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.tag.r18 {
  margin-left: auto;
  background: var(--accent);
  color: #ffffff;
}

.tag.age {
  margin-left: auto;
}

.rating-badge {
  margin-left: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.game-card-visual > .rating-badge,
.media-card > .rating-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.game-card-visual > .rating-badge {
  top: 12px;
  right: 12px;
}

.media-card > .rating-badge + .card-content .card-top {
  padding-right: 58px;
}

.brand-link:hover,
.card-title a:hover,
.game-card-title a:hover,
.game-card-brand a:hover,
.news-row h3 a:hover {
  text-decoration: underline;
}

a.tag:hover,
a.tag.is-active {
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
}

.card-title {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
}

.news-stack {
  border-top: 1px solid var(--ink);
}

.news-row {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 112px;
  padding: 28px 0;
  border-bottom: 1px solid var(--ink);
}

.news-row:hover h3 {
  color: var(--accent-dark);
}

.news-row:focus-visible {
  outline: 3px solid rgba(211, 15, 36, 0.32);
  outline-offset: 5px;
}

.news-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: end;
  gap: 8px;
}

.news-date {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.news-row h3 {
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 126px;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 800;
}

.read-more::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.plain-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.plain-card h2,
.plain-card h3 {
  margin-bottom: 10px;
}

.plain-card p,
.plain-card li {
  color: var(--muted);
}

.text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.guideline-body .page-main {
  padding-top: 0;
}

.guideline-page {
  background: var(--bg);
}

.guideline-hero {
  padding: 50px 0 44px;
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(247, 247, 244, 0.88) 100%);
}

.guideline-hero .breadcrumb {
  margin-bottom: 34px;
}

.guideline-hero h1 {
  max-width: 860px;
}

.guideline-hero .lead {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.guideline-hero-copy {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.guideline-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 48px;
}

.guideline-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
  padding-left: 18px;
  border-left: 4px solid var(--accent);
}

.guideline-toc a {
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.guideline-toc a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.guideline-content {
  min-width: 0;
}

.guideline-section {
  scroll-margin-top: 100px;
}

.guideline-section + .guideline-section {
  margin-top: 54px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-item {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq-item h3 {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.55;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.faq-contact {
  margin-top: 12px;
}

.faq-item a,
.guideline-article a {
  color: var(--accent-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.faq-item a:hover,
.guideline-article a:hover {
  text-decoration: underline;
}

.guideline-article {
  scroll-margin-top: 100px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.guideline-article:first-of-type {
  border-top-color: var(--ink);
}

.guideline-article h3 {
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.45;
}

.guideline-article p {
  max-width: 820px;
  margin-bottom: 12px;
  color: var(--muted);
}

.guideline-article p:last-child {
  margin-bottom: 0;
}

.guideline-article ul {
  max-width: 820px;
  margin: 12px 0 14px;
  padding-left: 1.4em;
  color: var(--muted);
}

.guideline-article li + li {
  margin-top: 6px;
}

.brand-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.game-detail-head {
  align-items: center;
}

.detail-meta,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta {
  margin-top: 18px;
}

.detail-actions {
  margin-top: 24px;
}

.game-cover {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #202124;
  box-shadow: var(--shadow);
}

.game-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.age-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(247, 247, 244, 0.92);
  backdrop-filter: blur(6px);
}

.age-modal.is-open {
  display: flex;
}

.age-dialog {
  width: min(520px, 100%);
  padding: 30px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.age-dialog h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.age-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.footer-links a {
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .game-card,
  .media-card {
    transition: none;
  }

  .game-card:hover,
  .game-card:focus-within,
  .media-card:hover,
  .media-card:focus-within {
    transform: none;
  }
}

@media (max-width: 920px) {
  .header-inner,
  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel-grid {
    grid-template-columns: 1fr;
  }

  .brand-detail-head,
  .detail-sections,
  .text-grid,
  .guideline-layout,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .guideline-layout {
    gap: 34px;
  }

  .guideline-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 0 0 18px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .guideline-toc a {
    padding: 0;
  }

  .news-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .read-more {
    justify-self: start;
  }

  .news-row-actions {
    align-items: flex-start;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .page-main {
    padding-top: 26px;
  }

  .guideline-body .page-main {
    padding-top: 0;
  }

  .guideline-hero {
    padding: 34px 0 32px;
  }

  .guideline-layout {
    padding-top: 34px;
  }

  .faq-item {
    padding: 18px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .filter-trigger {
    min-height: 52px;
    font-size: 15px;
  }

  .filter-panel {
    max-height: calc(100vh - 32px);
    padding: 28px 18px 20px;
    border-radius: 20px;
  }

  .filter-modal {
    padding: 16px;
  }

  .site-nav a,
  .site-nav button {
    padding-inline: 10px;
  }

  .card-content {
    padding: 14px;
  }
}
