
/* NULLLATTE — Café Style */

@font-face {
  font-family: "MaruMonica";
  src: url("fonts/MaruMonica.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
:root {
  --background: #ded0c7;
  --text: #3a323c;
  --accent: #a37370;
  --line: #cca795;
  --paper: #d7c1b4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "MaruMonica", sans-serif;
  line-height: 1.8;
}

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

a:hover {
  color: var(--accent);
}

.site {
  max-width: 1400px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 64px 24px;
}

/* Header */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.brand h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: 2px;
}

.brand p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 2px;
}

.nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav a {
  font-size: 14px;
}

.language {
  display: flex;
  align-items: center;
  gap: 6px;
}

.language button {
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.language button.active,
.language button[aria-pressed="true"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

html[lang="ja"] [lang="en"],
html[lang="en"] [lang="ja"] {
  display: none !important;
}

.language button:hover {
  color: var(--accent);
}

/* Main */

.main {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  padding: 64px 0;
}

.intro {
  padding-top: 24px;
}

.tagline {
  font-style: italic;
  letter-spacing: 1px;
}

.intro h2 {
  margin-top: 32px;
  font-size: 22px;
  font-weight: normal;
}

.intro p {
  margin-bottom: 28px;
}

.english {
  opacity: 0.8;
}

/* Featured Game */

.game-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 14px;
  letter-spacing: 2px;
}

.featured h2 {
  margin: 16px 0 4px;
  font-size: 20px;
}

.featured p {
  margin: 0 0 12px;
}

.featured a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Footer */

footer {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  text-align: center;
}

/* Mobile */

@media (max-width: 800px) {
  .site {
    padding: 24px;
  }

  .header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .nav {
    gap: 12px 20px;
  }

  .main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 0;
  }

  .intro {
    padding-top: 0;
  }

  .brand h1 {
    font-size: 26px;
  }
}

/* Centered Café Header */

.header {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 40px 0 36px;
}

.brand {
  text-align: center;
}

.brand-icon {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  image-rendering: pixelated;
  margin: 0 auto 18px;
}

.brand h1 {
  font-size: 40px;
  letter-spacing: 3px;
}

.brand p {
  margin: 0;
}

.brand-subtitle {
  margin-top: 8px !important;
  font-style: italic;
  font-size: 14px !important;
  letter-spacing: 1px !important;
}

.nav {
  justify-content: center;
  gap: 12px;
}

.nav a {
  padding: 6px 20px;
  background: var(--paper);
  border-radius: 999px;
  font-size: 14px;
  transition: background 0.2s;
}

.nav a:hover {
  background: var(--line);
  color: var(--text);
}

.language {
  justify-content: center;
  font-size: 13px;
}

/* Mobile header adjustment */

@media (max-width: 800px) {
  .header {
    align-items: center;
    gap: 16px;
  }

  .brand h1 {
    font-size: 30px;
  }

  .brand-icon {
    width: 80px;
    height: 80px;
  }

  .nav {
    justify-content: center;
    gap: 8px;
  }

  .nav a {
    padding: 5px 12px;
    font-size: 12px;
  }
}

/* Compact Café Header */

.header {
  padding: 8px 0 24px;
  gap: 12px;
}

.brand-icon {
  margin-bottom: 8px;
}

.brand h1 {
  margin: 0;
  font-size: 36px;
}

.brand-subtitle {
  margin-top: 4px !important;
}

.nav {
  margin-top: 8px;
}

.language {
  margin-top: 0;
}

/* Bring content closer to the menu */

.main {
  padding-top: 36px;
}

/* Three-column Game Gallery */

.main {
  display: block;
  padding: 28px 0 48px;
}

.games-section {
  width: 100%;
}

.games-section h2 {
  margin: 0;
  font-size: 26px;
}

.section-subtitle {
  margin: 0 0 20px;
  font-size: 15px;
  opacity: 0.75;
}

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

.game-card {
  display: block;
  min-width: 0;
}

.game-card img,
.game-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  image-rendering: pixelated;
  border-radius: 12px;
}

.game-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 14px;
}

.game-card h3 {
  margin: 10px 0 0;
  font-size: 19px;
}

.game-card p {
  margin: 0;
  font-size: 14px;
  opacity: 0.75;
}

.game-card:hover img {
  opacity: 0.85;
}

/* Tablet */

@media (max-width: 900px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */

@media (max-width: 600px) {
  .game-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Tighter Header */

.site {
  padding-top: 8px;
}

.header {
  padding-top: 0;
  padding-bottom: 12px;
  gap: 4px;
}

.brand-icon {
  margin-bottom: 0;
}

.brand h1 {
  margin: 0;
}

.brand-subtitle {
  margin-top: 0 !important;
}

.nav {
  margin-top: 0;
}

.main {
  padding-top: 20px;
}
.flavor-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 28px;
}

.flavor-filters button {
  font-family: inherit;
  font-size: 16px;
  padding: 8px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.flavor-filters button:hover {
  background: #f4e8df;
}

.flavor-filters button.active {
  background: var(--text);
  color: #fff;
}

/* 非表示のゲームはレイアウトから除外 */
[data-flavors][hidden] {
  display: none !important;
}

/* CAST */

.cast-subtitle {
  margin: 8px 0 28px;
  opacity: 0.65;
}

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

.cast-card {
  min-width: 0;
}

.cast-portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #cbbdb5;
}

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

.cast-card h3 {
  margin: 12px 0 0;
  font-size: 18px;
}

@media (max-width: 600px) {
  .cast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

.cast-game {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.65;
}

/* CAST - Character selector */

.cast-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 32px 0 44px;
}

.cast-icon {
  width: 90px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: center;
}

.cast-icon img {
  display: block;
  width: 76px;
  height: 76px;
  margin: 0 auto 8px;
  border-radius: 50%;
  border: 3px solid #b9a99f;
  object-fit: cover;
  transition: transform 0.2s, border-color 0.2s;
}

.cast-icon:hover img {
  transform: scale(1.1);
}

.cast-icon.active img {
  border-color: #78575e;
}

.cast-icon span {
  display: block;
  font-size: 13px;
}

/* CAST - Shared profile */

.cast-profile {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 32px 20px;
  border-top: 2px solid #b9a99f;
  min-height: 360px;
}

.cast-profile-name h3 {
  font-size: 30px;
  margin: 0;
}

.cast-profile-art img {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.cast-profile-info {
  font-size: 15px;
  line-height: 1.8;
}

.cast-profile-info h4 {
  margin: 24px 0 8px;
  font-size: 13px;
  letter-spacing: 1px;
}

.cast-game-link {
  display: block;
  margin-bottom: 8px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cast-game-link:hover {
  opacity: 0.6;
}

@media (max-width: 650px) {
  .cast-icons {
    gap: 12px;
  }

  .cast-icon {
    width: 76px;
  }

  .cast-icon img {
    width: 64px;
    height: 64px;
  }

  .cast-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cast-profile-art img {
    max-height: 320px;
  }
}
.cast-section > h2,
.cast-subtitle {
  text-align: center;
}
.main h2 {
  text-align: center;
}
/* CAST filters */

.cast-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cast-filter {
  padding: 9px 22px;
  border: 1px solid #b9a99f;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.cast-filter:hover {
  transform: translateY(-2px);
}

.cast-filter.active {
  background: #78575e;
  border-color: #78575e;
  color: #fff;
}
.cast-filter {
  padding: 6px 15px;
  font-size: 13px;
}

.cast-filters {
  gap: 8px;
}

/* =========================
   DEVLOG
========================= */

.devlog-section {
  max-width: 900px;
  margin: 0 auto;
}

.devlog-subtitle {
  text-align: center;
  color: var(--text);
  opacity: 0.65;
  margin: 8px 0 36px;
}

.devlog-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.devlog-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 32px;
}

.devlog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 13px;
}

.devlog-meta span {
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
}

.devlog-card h3 {
  margin: 18px 0 12px;
  font-size: 21px;
  color: var(--text);
}

.devlog-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
}

.devlog-readmore {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s;
}

.devlog-readmore:hover {
  transform: translateX(4px);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .devlog-card {
    padding: 22px 20px;
  }

  .devlog-card h3 {
    font-size: 18px;
  }
}

/* DEVLOG filters */

.devlog-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.devlog-filter {
  padding: 6px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.devlog-filter:hover {
  transform: translateY(-2px);
}

.devlog-filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--background);
}

.devlog-card[hidden] {
  display: none;
}

/* =========================
   ABOUT
========================= */

.about-section {
  max-width: 900px;
  margin: 0 auto;
}

.about-subtitle {
  text-align: center;
  opacity: 0.65;
  margin: 8px 0 36px;
}

.about-profile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px;
}

.about-profile h3 {
  margin: 0 0 8px;
  font-size: 28px;
}

.about-name {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 14px;
}

.about-description {
  margin: 0;
  font-size: 16px;
  line-height: 2;
}

.about-links {
  margin-top: 40px;
}

.about-links h3 {
  font-size: 20px;
  margin-bottom: 18px;
}

.about-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-link {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.about-link:hover {
  background: var(--paper);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .about-profile {
    padding: 24px;
  }

  .about-description {
    font-size: 14px;
  }
}


/* ABOUT - Tools */

.about-tools {
  margin-top: 36px;
}

.about-tools h3 {
  font-size: 20px;
  margin-bottom: 18px;
}

.about-tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-tool-list span {
  padding: 8px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
}


/* ページ切り替えアニメーション */

body {
  animation: pageFadeIn 0.35s ease-out;
}

body.page-leaving {
  opacity: 0;
  transition: opacity 0.25s ease-in;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }

  body.page-leaving {
    transition: none;
  }
}

/* GAMES - External links */

.game-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.game-links a {
	display: inline-block;
	padding: 7px 14px;
	background: var(--background);
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--text);
	font-size: 13px;
	text-decoration: none;
	transition: background 0.2s, transform 0.2s;
}

.game-links a:hover {
	background: var(--paper);
	transform: translateY(-2px);
}

/* リンクではなく紹介カードとして表示 */
.game-card {
	cursor: default;
}

.game-card[hidden] {
	display: none;
}

/* GAMES - Card hover */

.game-card:hover {
	background: var(--paper);
	transform: none;
	box-shadow: none;
}

.game-card {
	cursor: default;
}

/* GAMES - Rounded cards */

.game-card {
	border-radius: 14px;
	overflow: hidden;
}

/* GAMES - Card inner spacing */

.game-card h3,
.game-card p,
.game-card .game-links {
	padding-left: 18px;
	padding-right: 18px;
}
.game-card {
	padding-bottom: 20px;
}

/* =========================
   DEVLOG - ARTICLE
========================= */

.post-article {
	max-width: 760px;
	margin: 0 auto;
}

.post-header {
	text-align: center;
	margin-bottom: 48px;
}

.post-meta {
	color: var(--accent);
	font-size: 13px;
	margin-bottom: 14px;
}

.post-header h2 {
	font-size: 28px;
	line-height: 1.6;
}

.post-content {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 44px 48px;
	font-size: 15px;
	line-height: 2.1;
}

.post-content p {
	margin: 0 0 24px;
}

.post-content h3 {
	font-size: 21px;
	margin: 52px 0 22px;
	line-height: 1.6;
}

.post-content a {
	color: var(--accent);
	text-underline-offset: 4px;
}

.post-content blockquote {
	margin: 28px 0;
	padding: 18px 24px;
	border-left: 3px solid var(--accent);
	background: var(--background);
	font-style: italic;
}

.post-table-wrap {
	overflow-x: auto;
	margin: 24px 0;
}

.post-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.post-content th,
.post-content td {
	padding: 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.post-content th {
	color: var(--accent);
}

.post-back {
	display: inline-block;
	margin-top: 36px;
	color: var(--accent);
	text-decoration: none;
}

.post-back:hover {
	text-decoration: underline;
}

@media (max-width: 600px) {
	.post-header h2 {
		font-size: 22px;
	}

	.post-content {
		padding: 26px 22px;
	}

	.post-content h3 {
		font-size: 19px;
	}
}

/* =========================
   DEVLOG - ARTICLE
========================= */

.post-article {
	max-width: 760px;
	margin: 0 auto;
}

.post-header {
	text-align: center;
	margin-bottom: 48px;
}

.post-meta {
	color: var(--accent);
	font-size: 13px;
	margin-bottom: 14px;
}

.post-header h2 {
	font-size: 28px;
	line-height: 1.6;
}

.post-content {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 44px 48px;
	font-size: 15px;
	line-height: 2.1;
}

.post-content p {
	margin: 0 0 24px;
}

.post-content h3 {
	font-size: 21px;
	margin: 52px 0 22px;
	line-height: 1.6;
}

.post-content a {
	color: var(--accent);
	text-underline-offset: 4px;
}

.post-content blockquote {
	margin: 28px 0;
	padding: 18px 24px;
	border-left: 3px solid var(--accent);
	background: var(--background);
	font-style: italic;
}

.post-table-wrap {
	overflow-x: auto;
	margin: 24px 0;
}

.post-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.post-content th,
.post-content td {
	padding: 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.post-content th {
	color: var(--accent);
}

.post-back {
	display: inline-block;
	margin-top: 36px;
	color: var(--accent);
	text-decoration: none;
}

.post-back:hover {
	text-decoration: underline;
}

@media (max-width: 600px) {
	.post-header h2 {
		font-size: 22px;
	}

	.post-content {
		padding: 26px 22px;
	}

	.post-content h3 {
		font-size: 19px;
	}
}

/* =========================
   HOME
========================= */

.home-section {
	margin-top: 64px;
}

.home-section h2 {
	margin-bottom: 24px;
}

.home-more-link {
	display: inline-block;
	margin-top: 24px;
	color: var(--accent);
	text-decoration: none;
	font-size: 14px;
	transition: transform 0.2s ease;
}

.home-more-link:hover {
	transform: translateX(4px);
	text-decoration: underline;
}

/* Latest Devlog */

#latest-devlog {
	max-width: 760px;
}

#latest-devlog .devlog-card {
	margin: 0;
}

/* About */

.home-about {
	padding-bottom: 20px;
}

.home-about-text {
	max-width: 680px;
	font-size: 15px;
	line-height: 2;
	margin-bottom: 24px;
}

.home-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.home-social-links a {
	display: inline-block;
	padding: 9px 18px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	color: var(--text);
	text-decoration: none;
	font-size: 13px;
	transition: transform 0.2s ease, background 0.2s ease;
}

.home-social-links a:hover {
	transform: translateY(-2px);
	background: var(--background);
}

@media (max-width: 600px) {
	.home-section {
		margin-top: 44px;
	}
}

/* HOME - About 中央寄せ */

.home-about {
	text-align: center;
}

.home-about-text {
	margin-left: auto;
	margin-right: auto;
}

.home-social-links {
	justify-content: center;
}
#latest-devlog {
	margin-left: auto;
	margin-right: auto;
}

/* HOME - View All リンク右寄せ */

.home-more-link {
	display: block;
	width: fit-content;
	margin-left: auto;
	margin-right: 0;
}

/* =========================
   CAST - PROFILE CARDS
========================= */

.cast-card-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 40px;
}

.cast-card {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 24px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 14px;
	min-width: 0;
}

.cast-card[hidden] {
	display: none;
}

.cast-card-image {
	width: 150px;
	height: 150px;
	flex-shrink: 0;
	object-fit: cover;
	border-radius: 12px;
	background: var(--background);
}

.cast-card-info {
	min-width: 0;
}

.cast-card-info h3 {
	font-size: 23px;
	margin: 0 0 12px;
}

.cast-card-info p {
	font-size: 14px;
	line-height: 1.8;
	margin: 0 0 18px;
}

.cast-card-info h4 {
	font-size: 12px;
	letter-spacing: 0.06em;
	margin: 0 0 8px;
}

.cast-card-games {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	font-size: 13px;
	line-height: 1.6;
}

.cast-card-games a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cast-game-title {
	color: var(--text);
}

@media (max-width: 850px) {
	.cast-card-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.cast-card {
		gap: 16px;
		padding: 16px;
	}

	.cast-card-image {
		width: 100px;
		height: 100px;
	}

	.cast-card-info h3 {
		font-size: 20px;
	}
}

/* 小さなドット絵をくっきり拡大 */

.cast-card-image.pixel-art {
	image-rendering: pixelated;
}
/* 英語対応まで言語切り替えを非表示 */
.language {
	display: none;
}
.games-more,
.cast-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	margin: 36px auto 12px;
	text-align: center;
	color: var(--accent);
	letter-spacing: 0.04em;
}

.games-more p,
.cast-more p {
	margin: 0 0 8px;
	font-size: 14px;
	text-align: center;
}

.games-more small,
.cast-more small {
	display: block;
	font-size: 12px;
	text-align: center;
	opacity: 0.8;
}

/* ====================================
   NULLLATTE MINI CHARACTER
   ==================================== */

.home-about .about-walkway {
  position: relative;
  display: block;
  width: 100%;
  height: 110px;

  /* SNSリンクから離す */
  margin-top: 40px;
  margin-bottom: 20px;

  padding: 0;
  overflow: hidden;

  border-bottom: 1px solid #d8b7a8;
  box-sizing: border-box;
}

.home-about #nulllatteWalk {
  display: block;
  width: 100%;
  height: 100%;

  /* ドットをくっきり表示 */
  image-rendering: pixelated;

  background: transparent;
}

/* 小さい画面用 */
@media (max-width: 600px) {
  .home-about .about-walkway {
    height: 110px;
    margin-top: 32px;
  }
}

/* JP / EN セグメント切替 */
.header .language {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: fit-content;
  height: auto;
  margin: 14px auto 18px;
  padding: 3px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  flex-shrink: 0;
}

.header .language span {
  display: none;
}

.header .language button {
  border: none;
  border-radius: 999px;
  padding: 6px 18px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.header .language button.active,
.header .language button[aria-pressed="true"] {
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

.header .language button:hover:not(.active) {
  background: rgba(120, 87, 94, 0.12);
}

.header .language {
  margin: 10px auto 14px;
  padding: 2px;
}

.header .language button {
  min-width: 40px;
  padding: 3px 8px;
  font-size: 11px;
}

/* ヘッダーを配置の基準にする */
.header {
  position: relative;
}

/* JP / ENを右上に配置 */
.header .language {
  position: absolute;
  top: 16px;
  right: 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;

  width: fit-content;
  height: auto;
  margin: 0;
  padding: 2px;

  border: 1px solid var(--accent);
  border-radius: 999px;
}

/* ボタンをコンパクトに */
.header .language button {
  min-width: 36px;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 999px;
}

/* モバイルでは端に寄せる */
@media (max-width: 600px) {
  .header .language {
    top: 8px;
    right: 8px;
  }

  .header .language button {
    min-width: 32px;
    padding: 4px 6px;
  }
}

/* ==================================
   JP / EN スライドアニメーション
   ================================== */

/* トグル本体 */
.header .language {
  position: absolute;
  overflow: hidden;
  isolation: isolate;
}

/* スライドするピンクの背景 */
.header .language::before {
  content: "";
  position: absolute;

  top: 2px;
  bottom: 2px;
  left: 2px;

  width: calc((100% - 4px) / 2);
  border-radius: 999px;

  background: var(--accent);

  transform: translateX(0);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);

  z-index: 0;
  pointer-events: none;
}

/* EN選択中は右にスライド */
.header .language:has(button:last-of-type.active)::before,
.header .language:has(button:last-of-type[aria-pressed="true"])::before {
  transform: translateX(100%);
}

/* ボタンはスライド背景より手前 */
.header .language button {
  position: relative;
  z-index: 1;

  min-width: 36px;
  background: transparent !important;
  text-decoration: none !important;

  transition: color 150ms ease;
}

/* 選択中の文字 */
.header .language button.active,
.header .language button[aria-pressed="true"] {
  color: #ffffff;
}

/* 非選択中の文字 */
.header .language button:not(.active):not([aria-pressed="true"]) {
  color: var(--text);
}

/* 非選択中のホバー */
.header .language button:hover:not(.active) {
  background: transparent !important;
  color: var(--accent);
}

/* 動きを減らす設定を尊重 */
@media (prefers-reduced-motion: reduce) {
  .header .language::before,
  .header .language button {
    transition: none;
  }
}
.cast-image {
  width: 224px;
  height: 224px;
  border-radius: 24px;
  overflow: hidden;
  background: #e7d8cf;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cast-image img {
  width: 192px;
  height: 192px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

/* 現在開いているページ */
.nav a[aria-current="page"] {
  background: #78575e;
  color: #fff5ed;
}

/* 現在のページはホバーしても色を維持 */
.nav a[aria-current="page"]:hover {
  background: #78575e;
  color: #fff5ed;
}

/* GALLERY内のコレクション見出し */
.goods-collection-title {
  margin: 18px 0 16px;
  font-size: 20px;
  font-weight: normal;
  letter-spacing: 0.08em;
  color: var(--text);
}

/* GAMES：クリックできないカード全体のホバー演出を無効化 */
.game-card:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}

.game-card:hover img {
  opacity: 1;
}

/* 実際に押せるリンクだけ反応 */
.game-card .game-links a:hover {
  background: var(--paper);
  transform: translateY(-2px);
}

/* GAMES — Streaming & fan art policy (collapsible) */
.streaming-policy {
  max-width: 960px;
  margin: 22px auto 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
}

.streaming-policy-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
}

.streaming-policy-summary::-webkit-details-marker {
  display: none;
}

.streaming-policy-summary::after {
  content: "";
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  background: url("images/policy-chevron-down.png") center / contain no-repeat;
  image-rendering: pixelated;
}

.streaming-policy[open] > .streaming-policy-summary::after {
  background-image: url("images/policy-chevron-up.png");
}

.streaming-policy-summary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.streaming-policy-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.streaming-policy-summary-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.6;
}

.streaming-policy-summary-text strong {
  font-size: 15px;
  font-weight: normal;
}

.streaming-policy-summary-text > span {
  font-size: 12px;
  opacity: 0.78;
}

.streaming-policy-content {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.9;
}

.streaming-policy-content p {
  margin: 0 0 12px;
}

.streaming-policy-content h3 {
  margin: 22px 0 8px;
  font-size: 17px;
  font-weight: normal;
}

.streaming-policy-content ul {
  margin: 0 0 14px;
  padding-left: 1.5em;
}

.streaming-policy-content li {
  margin-bottom: 8px;
}

.streaming-policy-lead {
  font-size: 15px;
}

.streaming-policy-tag {
  white-space: nowrap;
  overflow-wrap: normal;
}

.streaming-policy-content .streaming-policy-outro {
  margin-top: 22px;
  margin-bottom: 0;
  text-align: center;
}

@media (max-width: 600px) {
  .streaming-policy {
    margin-top: 18px;
  }

  .streaming-policy-summary {
    padding: 12px 14px;
  }

  .streaming-policy-summary-text strong {
    font-size: 14px;
  }

  .streaming-policy-content {
    padding: 16px;
    font-size: 13px;
  }
}

/* =========================
   HOME Scroll Band
========================= */

.home-band {
  --band-progress: 0;
  --band-bg: #d8c8be;
  --band-dark: #7b6269;
  --band-line: #8c6f76;
  --band-accent: #c9a695;

  position: relative;
  width: 100%;
  height: clamp(88px, 10vw, 130px);
  margin: 0 auto 28px;
  border: 2px solid var(--band-line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--band-bg);
  isolation: isolate;
}

/* ドットタイルのベース */
.home-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 0 calc(100% - 1px),
      rgba(255,255,255,0.42) calc(100% - 1px) 100%
    ),
    linear-gradient(
      180deg,
      transparent 0 calc(100% - 1px),
      rgba(255,255,255,0.42) calc(100% - 1px) 100%
    );
  background-size: 44px 44px;
  opacity: calc(0.22 + var(--band-progress) * 0.55);
  transform: translateX(calc((1 - var(--band-progress)) * -28px));
  transition: opacity 0.12s linear, transform 0.12s linear;
  z-index: 0;
}

/* 色付きタイルを少し混ぜる */
.home-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--band-accent), var(--band-accent)) 4% 0 / 44px 44px no-repeat,
    linear-gradient(var(--band-accent), var(--band-accent)) 18% 44px / 44px 44px no-repeat,
    linear-gradient(var(--band-accent), var(--band-accent)) 32% 0 / 44px 44px no-repeat,
    linear-gradient(var(--band-accent), var(--band-accent)) 52% 44px / 44px 44px no-repeat,
    linear-gradient(var(--band-accent), var(--band-accent)) 70% 0 / 44px 44px no-repeat,
    linear-gradient(var(--band-accent), var(--band-accent)) 88% 44px / 44px 44px no-repeat,
    linear-gradient(var(--band-dark), var(--band-dark)) left bottom / calc(18% + var(--band-progress) * 82%) 36% no-repeat;
  opacity: calc(0.18 + var(--band-progress) * 0.9);
  transition: opacity 0.12s linear;
  z-index: 1;
}

.home-band__title {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
  text-align: center;
  font-size: clamp(24px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--text);
  transform:
    translateY(calc((1 - var(--band-progress)) * 10px))
    scale(calc(0.94 + var(--band-progress) * 0.06));
  opacity: calc(0.35 + var(--band-progress) * 0.65);
  transition: transform 0.12s linear, opacity 0.12s linear;
}

/* モバイルでは少し控えめに */
@media (max-width: 640px) {
  .home-band {
    height: 82px;
    border-radius: 18px;
    margin-bottom: 20px;
  }

  .home-band::before {
    background-size: 28px 28px;
  }
}

/* 動き苦手な人向け */
@media (prefers-reduced-motion: reduce) {
  .home-band,
  .home-band::before,
  .home-band::after,
  .home-band__title {
    transition: none !important;
  }

  .home-band {
    --band-progress: 1;
  }
}