:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --line: #d8dee9;
  --blue: #2f5be8;
  --blue-dark: #1d4ed8;
  --blue-soft: #edf4ff;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Inter", "Zen Kaku Gothic New", "Noto Sans JP", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.is-loading .article-rail:empty,
body.is-loading .taxonomy-rail:empty {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #f3f6fb 0%, #fff 44%, #f3f6fb 88%);
  background-size: 220% 100%;
  animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
  to { background-position-x: -220%; }
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 14px;
  left: 50%;
  width: min(1180px, calc(100% - 28px));
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(203, 213, 225, .78);
  border-radius: 999px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .98), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(248, 250, 252, .84));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .94),
    0 16px 34px rgba(15, 23, 42, .06);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  transform: translateX(-50%);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #4f83ff, #2757f3);
  color: #fff;
  font-size: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    0 10px 22px rgba(37, 99, 235, .22);
}

.site-nav {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a,
.site-3q-toggle {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"],
.site-3q-toggle:hover,
.site-3q-toggle:focus-visible,
.site-3q-toggle[aria-expanded="true"] {
  border-color: rgba(37, 99, 235, .22);
  background: rgba(239, 246, 255, .9);
  color: #2556dc;
}

.home-top-3q-menu[hidden] {
  display: none !important;
}

.home-top-3q-menu {
  position: fixed;
  inset: 0;
  z-index: 78;
  pointer-events: none;
}

.home-top-3q-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 72px, rgba(37, 99, 235, .10), transparent 34%),
    linear-gradient(180deg, rgba(248, 250, 252, .44), transparent 34%);
  opacity: 0;
  pointer-events: auto;
  transition: opacity .18s ease;
}

.home-top-3q-links {
  position: absolute;
  top: 78px;
  left: 50%;
  width: min(520px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(191, 219, 254, .86);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .98), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(239, 246, 255, .88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    0 24px 64px rgba(15, 23, 42, .16);
  backdrop-filter: blur(18px) saturate(1.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
  opacity: 0;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-8px) scale(.98);
  transition: opacity .18s ease, transform .22s cubic-bezier(.2, .84, .24, 1.08);
}

.home-top-3q-links a {
  min-width: 0;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(191, 219, 254, .82);
  border-radius: 16px;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, .98), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .86));
  color: #1d4ed8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    0 10px 24px rgba(37, 99, 235, .09);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity .18s ease var(--menu-delay, 0ms),
    transform .22s ease var(--menu-delay, 0ms);
}

.home-top-3q-links b,
.home-top-3q-links small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-top-3q-links b {
  color: #0f3fb8;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 900;
}

.home-top-3q-links small {
  color: #64748b;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 800;
}

body.is-home-top-3q-open .home-top-3q-backdrop {
  opacity: 1;
}

body.is-home-top-3q-open .home-top-3q-links {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

body.is-home-top-3q-open .home-top-3q-links a {
  opacity: 1;
  transform: translateY(0);
}

main {
  padding-top: 96px;
}

.genre-hero {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  border: 2px solid #0b1020;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(37, 86, 220, .94), rgba(32, 78, 214, .98)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.12) 0 1px, transparent 1px 82px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    0 18px 44px rgba(34, 70, 180, .18);
  overflow: hidden;
}

.genre-inner {
  position: relative;
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(54px, 6vw, 90px) 0 clamp(46px, 5vw, 72px);
}

.genre-inner::before {
  content: "";
  position: absolute;
  inset: -24px -180px;
  opacity: .14;
  background-image:
    radial-gradient(circle at 14px 14px, transparent 0 15px, rgba(4, 16, 56, .42) 16px 18px, transparent 19px),
    linear-gradient(90deg, rgba(4,16,56,.5) 2px, transparent 2px),
    linear-gradient(0deg, rgba(4,16,56,.5) 2px, transparent 2px);
  background-size: 92px 92px, 92px 92px, 92px 92px;
  pointer-events: none;
}

.section-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: var(--blue);
  font-size: clamp(16px, 1.9vw, 22px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.genre-hero .section-kicker {
  color: #fff;
}

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

h1 {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  margin: 0 0 34px;
  padding: 8px 0 14px;
  border-bottom: 2px solid rgba(255, 255, 255, .55);
  color: #fff;
  font-size: clamp(32px, 4.5vw, 46px);
  line-height: 1.15;
  font-weight: 900;
}

h2 {
  margin: 0;
  color: #20242c;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.15;
  font-weight: 900;
}

.genre-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(11, 16, 32, .72);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(8, 13, 31, .2);
  overflow: hidden;
}

.genre-card {
  min-height: 118px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 20px 12px;
  border-right: 1px solid #e7ebf2;
  border-bottom: 1px solid #e7ebf2;
  background: #fff;
  color: #222733;
  font-weight: 900;
  text-align: center;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.genre-card:nth-child(4n) {
  border-right: 0;
}

.genre-card:hover,
.genre-card:focus-visible {
  background: #f3f7ff;
  color: #2456db;
  transform: translateY(-1px);
}

.genre-icon {
  width: 24px;
  height: 24px;
  color: currentColor;
}

.outline-action {
  position: relative;
  z-index: 1;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: min(380px, 100%);
  margin: 40px auto 0;
  padding: 0 34px;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.outline-action::after {
  content: "→";
  font-size: 22px;
  line-height: 1;
}

.home-section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(44px, 6vw, 82px) 0 0;
}

.q-section {
  width: 100%;
  padding: clamp(36px, 4.4vw, 62px) max(22px, calc((100% - 1180px) / 2)) clamp(40px, 5vw, 70px);
  background: linear-gradient(180deg, #fff, #f5f8ff);
}

.q-section > * {
  width: min(1180px, calc(100% - 44px));
  margin-right: auto;
  margin-left: auto;
}

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

.section-head.compact {
  margin-bottom: 14px;
}

.section-head > p {
  max-width: 430px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
}

.mini-link {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(47, 91, 232, .24);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(47, 91, 232, .08);
}

.rail {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.q-card-list,
.article-rail,
.taxonomy-rail {
  display: flex;
  gap: 16px;
  width: max-content;
  min-width: 100%;
  padding: 4px 2px 18px;
}

.q-card {
  flex: 0 0 clamp(240px, 26vw, 318px);
  min-height: 158px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 20px;
  border: 1px solid #bcd0ff;
  border-radius: 8px;
  background: linear-gradient(145deg, #fff, #edf4ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 12px 26px rgba(47, 91, 232, .12);
  color: #172033;
  scroll-snap-align: start;
}

.q-card small,
.taxonomy-meta,
.article-meta {
  color: var(--blue);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.q-card strong {
  color: #111827;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 900;
}

.q-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

.article-card,
.taxonomy-card {
  flex: 0 0 clamp(260px, 25vw, 330px);
  width: clamp(260px, 25vw, 330px);
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #172033;
  box-shadow: 0 12px 30px rgba(18, 28, 45, .08);
  overflow: hidden;
  scroll-snap-align: start;
}

.card-media {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid #edf0f5;
  background: linear-gradient(135deg, #eef4ff, #f7fbff);
  overflow: hidden;
}

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

.card-body {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 15px 16px 17px;
}

.article-card strong,
.taxonomy-card strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  overflow: hidden;
}

.article-card span:not(.article-meta),
.taxonomy-card span:not(.taxonomy-meta) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  font-weight: 700;
  overflow: hidden;
}

.taxonomy-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.discovery-section {
  display: grid;
  gap: 28px;
}

.latest-section {
  padding-bottom: 54px;
}

.home-search {
  flex: 0 1 440px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(203, 213, 225, .84);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.home-search input {
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.home-search button {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.home-bottom-nav {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: min(420px, calc(100vw - 24px));
  min-height: 58px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 1), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(248, 250, 252, .72));
  box-shadow:
    0 22px 58px rgba(15, 23, 42, .14),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  transform: translateX(-50%);
}

.home-bottom-nav a,
.home-bottom-nav button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #334155;
  font-size: 10.5px;
  line-height: 1.1;
  font-weight: 700;
  cursor: pointer;
}

.home-bottom-nav a[aria-current="page"],
.home-bottom-nav .is-3q-bottom[aria-expanded="true"] {
  border-color: rgba(59, 130, 246, .42);
  background:
    radial-gradient(circle at 28% 10%, rgba(255, 255, 255, .32), transparent 44%),
    linear-gradient(180deg, rgba(69, 128, 255, .98), rgba(37, 99, 235, .96));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    0 12px 24px rgba(37, 99, 235, .24);
}

.home-nav-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-block;
  color: currentColor;
}

.home-mini::before,
.list-mini::before,
.q3-mini::before,
.web-mini::before,
.log-mini::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1.8px solid currentColor;
  border-radius: 4px;
}

.home-mini::before {
  transform: rotate(45deg);
  border-radius: 3px;
}

.list-mini::before {
  inset: 4px 3px 3px;
  border-width: 0;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.q3-mini::before {
  inset: 2px;
  border-radius: 999px;
}

.q3-mini::after {
  content: "3";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 900;
}

.web-mini::before {
  inset: 4px 2px;
  border-radius: 999px;
}

.log-mini::before {
  inset: 3px 4px;
  border-radius: 2px;
}

.home-bottom-3q-fan[hidden] {
  display: none !important;
}

.home-bottom-3q-fan {
  --fan-x: 50vw;
  --fan-rail-x: var(--fan-x);
  --fan-y: calc(100dvh - 52px);
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.home-bottom-3q-fan::before {
  content: "";
  position: fixed;
  left: var(--fan-rail-x);
  top: var(--fan-y);
  width: min(286px, calc(100vw - 32px));
  height: 144px;
  border: 1px solid rgba(147, 197, 253, .50);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  opacity: 0;
  transform: translate(-50%, -103%) scale(.72);
  transform-origin: 50% 100%;
  transition: opacity .18s ease, transform .24s cubic-bezier(.2, .84, .24, 1.14);
}

.home-bottom-3q-fan-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at var(--fan-x) var(--fan-y), rgba(37, 99, 235, .10), transparent 38%),
    linear-gradient(180deg, transparent 48%, rgba(248, 250, 252, .62));
  opacity: 0;
  pointer-events: auto;
  transition: opacity .18s ease;
}

.home-bottom-3q-fan-links a {
  position: fixed;
  left: var(--fan-x);
  top: var(--fan-y);
  width: 74px;
  min-height: 50px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 8px;
  border: 1px solid rgba(191, 219, 254, .92);
  border-radius: 18px;
  background:
    radial-gradient(circle at 26% 0%, rgba(255, 255, 255, .98), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(239, 246, 255, .90));
  color: #1d4ed8;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    0 16px 34px rgba(15, 23, 42, .16);
  filter: blur(1px);
  opacity: 0;
  pointer-events: auto;
  transform: translate(-50%, -50%) translate(0, 0) rotate(-10deg) scale(.68);
  transform-origin: 50% 100%;
  transition:
    opacity .18s ease var(--fan-delay, 0ms),
    transform .30s cubic-bezier(.16, .92, .24, 1.18) var(--fan-delay, 0ms),
    filter .20s ease var(--fan-delay, 0ms);
}

.home-bottom-3q-fan-links a b,
.home-bottom-3q-fan-links a small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-bottom-3q-fan-links a b {
  font-size: 12px;
  line-height: 1.05;
  font-weight: 900;
}

.home-bottom-3q-fan-links a small {
  color: #64748b;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 800;
}

body.is-home-3q-fan-open .home-bottom-3q-fan-backdrop {
  opacity: 1;
}

body.is-home-3q-fan-open .home-bottom-3q-fan::before {
  opacity: 1;
  transform: translate(-50%, -103%) scale(1);
}

body.is-home-3q-fan-open .home-bottom-3q-fan-links a {
  filter: blur(0);
  opacity: 1;
  transform: translate(-50%, -50%) translate(var(--fan-dx), var(--fan-dy)) scale(1);
}

body.is-home-3q-fan-open .home-bottom-nav .is-3q-bottom {
  border-color: rgba(37, 99, 235, .72);
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, .32), transparent 46%),
    linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #fff;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 82px;
  }

  main {
    padding-top: 76px;
  }

  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    min-height: 52px;
    gap: 8px;
    padding: 7px 8px;
  }

  .brand {
    font-size: 13px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

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

  .site-header .site-nav {
    display: none;
  }

  .site-header::after {
    content: "ホーム";
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(37, 99, 235, .22);
    border-radius: 999px;
    background: rgba(239, 246, 255, .9);
    color: #2556dc;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
  }

  .site-nav a,
  .site-3q-toggle {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .home-top-3q-links {
    top: 68px;
    width: calc(100vw - 20px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 8px;
    border-radius: 20px;
  }

  .home-top-3q-links a {
    min-height: 50px;
    padding: 9px 10px;
    border-radius: 14px;
  }

  .genre-hero {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .genre-inner {
    width: min(100% - 32px, 820px);
    padding: 34px 0 38px;
  }

  h1 {
    margin-bottom: 22px;
    font-size: 28px;
  }

  .genre-grid {
    grid-template-columns: none;
    grid-template-rows: repeat(2, minmax(96px, auto));
    grid-auto-flow: column;
    grid-auto-columns: 148px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .genre-grid::-webkit-scrollbar {
    display: none;
  }

  .genre-card {
    min-height: 96px;
    gap: 10px;
    padding: 14px 8px;
    scroll-snap-align: start;
    font-size: 14px;
  }

  .genre-card:nth-child(4n) {
    border-right: 1px solid #e7ebf2;
  }

  .outline-action {
    min-width: 0;
    width: min(100%, 320px);
    min-height: 48px;
    margin-top: 26px;
    padding: 0 20px;
    font-size: 14px;
  }

  .home-section,
  .q-section > * {
    width: min(100% - 24px, 1180px);
  }

  .home-section,
  .q-section {
    padding-top: 38px;
  }

  .section-head {
    display: block;
  }

  .section-head > p,
  .mini-link,
  .home-search {
    margin-top: 12px;
  }

  .q-card,
  .article-card,
  .taxonomy-card {
    flex-basis: min(78vw, 310px);
    width: min(78vw, 310px);
  }

  .q-card {
    min-height: 146px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-bottom-nav {
    display: flex;
  }
}
