/* Home-only skin. Light / white variant of the sharp home layout. */

.page-home {
  --home-bg: #ffffff;
  --home-bg-2: #f4f5f7;
  --home-ink: #121417;
  --home-muted: #5c6570;
  --home-accent: #1a4f8c;
  --home-accent-soft: #e8f1fa;
  --home-line: rgba(18, 20, 23, 0.12);
  --home-font-display: "Syne", "Noto Sans JP", sans-serif;
  --home-font-body: "Noto Sans JP", "Hiragino Sans", sans-serif;

  margin: 0;
  min-height: 100vh;
  color: var(--home-ink);
  background:
    radial-gradient(1000px 520px at 85% -8%, rgba(26, 79, 140, 0.08), transparent 55%),
    linear-gradient(180deg, var(--home-bg) 0%, var(--home-bg-2) 100%);
  background-attachment: fixed;
  font-family: var(--home-font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page-home a {
  color: var(--home-ink);
  text-decoration: none;
}

.page-home a:hover {
  color: var(--home-accent);
  text-decoration: none;
}

.page-home .home-wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.page-home .home-topbar {
  border-bottom: 1px solid var(--home-line);
  font-size: 12px;
  color: var(--home-muted);
  letter-spacing: 0.04em;
  background: #fff;
}

.page-home .home-topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.page-home .home-topbar-note {
  opacity: 0.8;
}

.page-home .home-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--home-line);
}

.page-home .home-header-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0 16px;
}

.page-home .home-brand-mark {
  font-family: var(--home-font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--home-ink);
}

.page-home .home-brand-mark:hover {
  color: var(--home-accent);
}

.page-home .home-gnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  max-width: 100%;
}

.page-home .home-gnav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.page-home .home-gnav a:hover {
  border-bottom-color: var(--home-accent);
}

.page-home .home-gnav a.is-current {
  color: var(--home-accent);
  border-bottom-color: var(--home-accent);
}

.page-home .home-hero {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(36px, 7vh, 64px) 0 clamp(20px, 4vh, 36px);
  overflow: hidden;
}

.page-home .home-hero-compact {
  min-height: 0;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, transparent 49.5%, var(--home-line) 49.5%, var(--home-line) 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 0%, transparent 49.5%, var(--home-line) 49.5%, var(--home-line) 50.5%, transparent 50.5%);
  background-size: 72px 72px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 90%);
}

.page-home .home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.page-home .home-hero-brand {
  margin: 0;
  font-family: var(--home-font-display);
  font-size: clamp(40px, 10vw, 88px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--home-ink);
  animation: home-rise 0.7s ease-out both;
}

.page-home .home-cat-lead {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--home-muted);
  letter-spacing: 0.01em;
}

.page-home .home-section-cats {
  padding-top: 20px;
  padding-bottom: 8px;
}

.page-home .home-cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 640px) {
  .page-home .home-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (min-width: 960px) {
  .page-home .home-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-home .home-cat-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--home-line);
  background: #fff;
  color: var(--home-ink);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.page-home .home-cat-card:hover,
.page-home .home-cat-card:focus-visible {
  color: var(--home-accent);
  border-color: var(--home-accent);
  background: var(--home-accent-soft);
  transform: none;
  outline: none;
}

.page-home .home-cat-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  background: #fff;
  aspect-ratio: auto;
}

.page-home .home-cat-card-media img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  transition: none;
}

.page-home .home-cat-card:hover .home-cat-card-media img,
.page-home .home-cat-card:focus-visible .home-cat-card-media img {
  transform: none;
}

.page-home .home-cat-card-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background: #eef3f8;
}

.page-home .home-cat-card-name {
  font-family: var(--home-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0;
  line-height: 1.35;
}

.page-home .home-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--home-accent);
  color: #fff;
  background: var(--home-accent);
  font-family: var(--home-font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  animation: home-rise 0.7s ease-out 0.24s both;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.page-home .home-cta:hover {
  background: #fff;
  color: var(--home-accent);
  transform: translateY(-1px);
}

.page-home .home-cta-arrow {
  font-size: 1.1em;
  line-height: 1;
}

@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero-brand,
  .page-home .home-hero h1,
  .page-home .home-hero-lead,
  .page-home .home-cta {
    animation: none;
  }
}

.page-home .home-section {
  padding: 56px 0 24px;
  border-top: 1px solid var(--home-line);
  background: #fff;
}

.page-home .home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.page-home .home-section-head h2 {
  margin: 0;
  font-family: var(--home-font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-home .home-section-head p {
  margin: 0;
  color: var(--home-muted);
  font-size: 13px;
}

.page-home .home-cat-list {
  display: none;
}

.page-home .home-section-cats {
  padding-bottom: 40px;
  overflow: hidden;
}

.page-home .home-cat-rail {
  position: relative;
  margin: 8px 0 20px;
  padding: 8px 0 16px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.page-home .home-cat-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: home-cat-scroll 42s linear infinite;
}

.page-home .home-cat-rail:hover .home-cat-track,
.page-home .home-cat-rail:focus-within .home-cat-track {
  animation-play-state: paused;
}

.page-home .home-cat-set {
  display: flex;
  gap: 14px;
  padding-right: 14px;
}

.page-home .home-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 168px;
  padding: 18px 20px;
  border: 1px solid var(--home-line);
  background: #fff;
  color: var(--home-ink);
  box-shadow: 0 1px 0 rgba(18, 20, 23, 0.04);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.35s ease;
}

.page-home .home-cat-chip:hover,
.page-home .home-cat-chip:focus-visible {
  transform: translateY(-6px) translateX(4px);
  border-color: var(--home-accent);
  background: var(--home-accent);
  color: #fff;
  box-shadow: 0 14px 28px rgba(26, 79, 140, 0.18);
  outline: none;
}

.page-home .home-cat-chip-name {
  font-family: var(--home-font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  white-space: nowrap;
}

.page-home .home-cat-chip-go {
  font-size: 16px;
  font-weight: 700;
  opacity: 0.45;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.page-home .home-cat-chip:hover .home-cat-chip-go,
.page-home .home-cat-chip:focus-visible .home-cat-chip-go {
  opacity: 1;
  transform: translateX(4px);
}

@keyframes home-cat-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Fallback: static wrap when motion is reduced */
.page-home .home-cat-static {
  display: none;
  flex-wrap: wrap;
  gap: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-cat-rail {
    display: none;
  }

  .page-home .home-cat-static {
    display: flex;
  }

  .page-home .home-cat-chip:hover,
  .page-home .home-cat-chip:focus-visible {
    transform: none;
  }
}

@media (max-width: 640px) {
  .page-home .home-cat-chip {
    min-width: 148px;
    padding: 16px 16px;
  }

  .page-home .home-cat-chip-name {
    font-size: 16px;
  }

  .page-home .home-cat-track {
    animation-duration: 32s;
  }
}

.page-home .home-cat-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--home-line);
  color: var(--home-ink);
  transition: color 0.15s ease, padding-left 0.15s ease, background 0.15s ease;
}

.page-home .home-cat-item:hover,
.page-home .home-cat-item:focus-visible {
  color: var(--home-accent);
  padding-left: 8px;
  background: linear-gradient(90deg, var(--home-accent-soft), transparent 55%);
  outline: none;
}

.page-home .home-cat-name {
  font-family: var(--home-font-display);
  font-size: clamp(20px, 3.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.page-home .home-cat-go {
  font-size: 13px;
  font-weight: 700;
  color: var(--home-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-home .home-cat-item:hover .home-cat-go {
  color: var(--home-accent);
}

@media (min-width: 720px) {
  .page-home .home-cat-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }
}

.page-home .home-reads {
  display: grid;
  gap: 36px;
}

@media (min-width: 860px) {
  .page-home .home-reads {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.page-home .home-read-block h3 {
  margin: 0 0 12px;
  font-family: var(--home-font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-home .home-read-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--home-line);
}

.page-home .home-read-list li {
  border-bottom: 1px solid var(--home-line);
}

.page-home .home-read-list a {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--home-muted);
}

.page-home .home-read-list a:hover {
  color: var(--home-accent);
}

.page-home .home-tv-link {
  display: inline-flex;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--home-accent);
  border-bottom: 1px solid var(--home-accent);
}

.page-home .home-tv-link:hover {
  opacity: 0.85;
}

.page-home .home-footer {
  margin-top: 0;
  padding: 36px 0 28px;
  border-top: 1px solid var(--home-line);
  color: var(--home-muted);
  font-size: 13px;
  background: var(--home-bg-2);
}

.page-home .home-footer-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 720px) {
  .page-home .home-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.page-home .home-footer h4 {
  margin: 0 0 10px;
  font-family: var(--home-font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--home-ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-home .home-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-footer li {
  margin: 0 0 6px;
}

.page-home .home-footer a {
  color: var(--home-muted);
}

.page-home .home-footer a:hover {
  color: var(--home-accent);
}

.page-home .home-footer-copy {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--home-line);
  font-size: 12px;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .page-home .home-wrap {
    width: min(1120px, calc(100% - 28px));
  }

  .page-home .home-topbar-inner {
    flex-direction: column;
    gap: 4px;
  }

  .page-home .home-gnav {
    font-size: 12px;
    gap: 6px 12px;
  }

  .page-home .home-hero {
    min-height: 0;
    align-items: flex-end;
  }
}
