/* 共通の文字・余白・操作しやすさ */
:root {
  color-scheme: light;
  --ink: #1b2027;
  --muted: #646c77;
  --line: #e2e5e9;
  --paper: #fff;
  --width: 1080px;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-underline-offset: 0.25em;
}
button,
input {
  font: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #2e79f2;
  outline-offset: 6px;
  border-radius: 3px;
}
::selection {
  background: #b4f0d8;
  color: #102b24;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.45;
  overflow-wrap: anywhere;
}
h1 {
  font-weight: 750;
}
p + p {
  margin-top: 1em;
}
a,
dd {
  overflow-wrap: anywhere;
}
.wrap {
  width: min(var(--width), calc(100% - 80px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  transform: translateY(-200%);
  padding: 8px 18px;
  background: #fff;
  color: #111;
}
.skip-link:focus {
  transform: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 750;
  font-size: 1.125rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.site-nav a {
  font-size: 0.875rem;
  text-decoration: none;
}
.site-nav a:hover {
  text-decoration: underline;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  font-weight: 650;
}
.muted {
  color: var(--muted);
}
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.section-title h2 {
  font-size: 1.625rem;
  letter-spacing: 0.04em;
}
.section-title > span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.external::after {
  content: " ↗";
  font-size: 0.9em;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 24px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 650;
  transition:
    transform 0.18s,
    background 0.18s;
}
.button:hover {
  transform: translateY(-2px);
  background: #343c48;
}
.button.secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.button.secondary:hover {
  background: #00000008;
}
.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.text-link {
  font-size: 0.9375rem;
}
.site-footer {
  padding: 28px 0 34px;
  margin-top: 80px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.site-footer small {
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* 開発者サイト：白地と細い罫線で、作品と連絡先を中心に置く */
.home-intro {
  padding: 85px 0 70px;
}
.home-intro .eyebrow {
  margin-bottom: 17px;
  color: var(--muted);
}
.home-intro h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.055em;
}
.handle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
}
.intro-copy {
  margin-top: 26px;
  font-size: 1.0625rem;
}
.home-works {
  padding-bottom: 72px;
}
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.work-card {
  display: block;
  text-decoration: none;
}
.work-art {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f0f3f5;
  border-radius: 7px;
}
.work-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.work-card:hover .work-art > img {
  transform: scale(1.025);
}
.work-art.doors-art {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070f23;
}
.work-art.doors-art > img {
  width: 45%;
  height: auto;
  max-height: 94%;
  object-fit: contain;
  border-radius: 4px;
}
.work-copy {
  padding: 21px 0 0;
}
.work-label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.work-copy h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.5rem;
  margin: 4px 0 7px;
}
.work-arrow {
  font-weight: 400;
  transition: transform 0.2s;
}
.work-card:hover .work-arrow {
  transform: translateX(4px);
}
.work-copy p {
  font-size: 1rem;
  color: #59626e;
}
.home-contact {
  padding-top: 45px;
  border-top: 1px solid var(--line);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 40px;
}
.contact-layout h2 {
  font-size: 1.5rem;
}
.contact-content p {
  margin-bottom: 18px;
}
.email-link {
  font-size: clamp(0.9375rem, 2vw, 1.1875rem);
  font-weight: 550;
}
.contact-socials {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 0.9375rem;
}
.contact-note {
  margin-top: 27px !important;
  margin-bottom: 0 !important;
  font-size: 0.875rem;
  color: var(--muted);
}
/* 作品ページで共通の情報と導線 */
.game-header .header-inner {
  min-height: 86px;
}
.game-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.game-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.game-header .site-nav {
  gap: 24px;
}
.game-section {
  padding: 80px 0;
}
.game-section h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  margin-bottom: 20px;
}
.game-lead {
  font-size: 1.0625rem;
  max-width: 43em;
}
.game-facts {
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  margin-top: 25px;
  font-size: 0.875rem;
}
.game-facts span {
  white-space: nowrap;
}
.game-contact {
  padding: 52px 0 12px;
}
.game-contact h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.game-contact p {
  margin-bottom: 20px;
}
.game-contact .actions {
  margin-top: 25px;
}
.game-contact .email-link {
  font-size: 1.125rem;
}
.game-footer {
  margin-top: 48px;
}
.back-link {
  display: inline-block;
  font-size: 0.875rem;
  margin-bottom: 28px;
  text-decoration: none;
}
.back-link:hover {
  text-decoration: underline;
}
.game-gallery {
  display: grid;
  gap: 24px;
}
.game-gallery figure {
  margin: 0;
}
.game-gallery a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
}
.game-gallery img {
  width: 100%;
  height: auto;
  transition: transform 0.25s;
}
.game-gallery a:hover img {
  transform: scale(1.025);
}
.game-gallery figcaption {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.65;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.feature-grid h3 {
  font-size: 1.1875rem;
  margin-bottom: 12px;
}
.feature-grid p {
  font-size: 1rem;
}
.feature-number {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.support-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-size: 0.9375rem;
}
/* うさぎダッシュ！：色のリズムと丸い文字で、軽快に */
.usagi-page {
  --ink: #173e34;
  --muted: #486459;
  --line: #d6e9dd;
  --paper: #fff;
  --sans: "Hiragino Maru Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
.usagi-page .game-header {
  background: #fff;
}
.usagi-hero {
  padding: 65px 0 58px;
  background: #eaffef;
  border-bottom: 1px solid #c9ebd4;
}
.usagi-hero-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.2fr;
  gap: 44px;
  align-items: center;
}
.usagi-kicker {
  display: inline-block;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #286148;
  background: #fff;
  border: 1px solid #badfc5;
  border-radius: 100px;
  padding: 4px 13px;
  margin-bottom: 17px;
}
.usagi-hero h1 {
  font-size: clamp(2rem, 3.75vw, 3rem);
  letter-spacing: -0.015em;
  font-weight: 900;
  color: #ef653e;
  text-shadow: 2px 2px 0 #fff;
}
.usagi-hero h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 22px 0 18px;
  line-height: 1.65;
  font-weight: 850;
}
.usagi-hero .actions {
  margin-top: 28px;
}
.usagi-page .button {
  border-radius: 100px;
  background: #cc4823;
  color: #fff;
  border: 2px solid #b93613;
  box-shadow: 0 4px 0 #b93613;
}
.usagi-page .button:hover {
  background: #b73a18;
  transform: translateY(-1px);
}
.usagi-hero-art {
  transform: rotate(2deg);
  border: 9px solid #fff;
  border-radius: 20px;
  box-shadow: 9px 12px 0 #59cf91;
  margin: 15px 6px 22px 0;
  overflow: hidden;
}
.usagi-hero-art img {
  width: 100%;
  aspect-ratio: 1052/592;
}
.usagi-ribbon {
  background: #ffde62;
  padding: 16px 0;
  color: #624608;
}
.usagi-ribbon .wrap {
  display: flex;
  justify-content: center;
  gap: 24px 54px;
  flex-wrap: wrap;
  font-size: 0.9375rem;
  font-weight: 750;
}
.usagi-page .feature-grid > article {
  padding: 26px;
  border-radius: 16px;
  border: 1px solid #d1e7d6;
  background: #effff3;
}
.usagi-page .feature-grid > article:nth-child(2) {
  background: #fff5d6;
  border-color: #f6df9e;
}
.usagi-page .feature-grid > article:nth-child(3) {
  background: #fff0f3;
  border-color: #f3cdd6;
}
.usagi-page .feature-number {
  font-weight: 800;
  color: #3b6d57;
}
.usagi-gallery-section {
  background: #f6faf7;
  border-block: 1px solid #e1eae3;
}
.usagi-gallery {
  grid-template-columns: repeat(3, 1fr);
}
.usagi-page .game-contact {
  padding-top: 64px;
}
/* アンド・ドアーズ：濃紺、真鍮色、明朝体で静かな謎を表現 */
.doors-page {
  color-scheme: dark;
  --ink: #eeeae1;
  --muted: #adb3bf;
  --line: #30323a;
  --paper: #0d111a;
  background:
    radial-gradient(ellipse at 85% 12%, #20242e 0, transparent 44%), #0d111a;
}
.doors-page ::selection {
  background: #cbb681;
  color: #151922;
}
.doors-page .game-header {
  background: #0d111ad9;
}
.doors-page .brand {
  font-family: var(--serif);
  letter-spacing: 0.09em;
}
.doors-hero {
  padding: 67px 0 80px;
  position: relative;
}
.doors-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: center;
}
.doors-hero .eyebrow {
  color: #cab784;
  margin-bottom: 25px;
}
.doors-title {
  font-family: var(--serif);
  font-size: clamp(2.15rem, 4.3vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 0.12em;
}
.doors-catch {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.7vw, 2.2rem);
  line-height: 1.9;
  letter-spacing: 0.1em;
  margin-top: 30px;
  margin-bottom: 24px;
}
.doors-hero .game-lead {
  color: #b6bdc8;
  font-size: 1rem;
  max-width: 29em;
}
.doors-hero .actions {
  margin-top: 32px;
}
.doors-page .button {
  border: 1px solid #c3ac76;
  background: #c3ac76;
  color: #141823;
  border-radius: 0;
  min-height: 54px;
  padding-inline: 29px;
}
.doors-page .button:hover {
  background: #dec792;
}
.doors-page .button.secondary {
  background: transparent;
  color: #dac591;
}
.doors-hero-visual {
  position: relative;
  max-width: 335px;
  justify-self: center;
  padding: 10px;
  border: 1px solid #7f725840;
  box-shadow: 0 28px 70px #0007;
}
.doors-hero-visual img {
  width: 100%;
  height: auto;
}
.doors-hero-visual figcaption {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #adb3bf;
  text-align: center;
  margin-top: 12px;
}
.doors-page .game-facts {
  color: #c0b290;
  gap: 8px 23px;
}
.doors-story {
  border-block: 1px solid var(--line);
  background: #111620;
}
.doors-page .game-section h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.doors-page .feature-grid {
  gap: 36px;
}
.doors-page .feature-grid article {
  border-top: 1px solid #645942;
  padding-top: 25px;
}
.doors-page .feature-number {
  color: #c5ad77;
}
.doors-page .feature-grid h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}
.doors-page .feature-grid p {
  color: #adb3bf;
}
.doors-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 920px;
  margin-inline: auto;
  gap: 40px;
}
.doors-gallery a {
  border: 1px solid #4e4b44;
  border-radius: 0;
  background: #171923;
  padding: 7px;
}
.doors-gallery figcaption {
  color: #b3bac5;
  text-align: center;
}
.doors-gallery-heading {
  margin-bottom: 38px !important;
}
.doors-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 32px !important;
}
.doors-page .game-contact {
  border-top: 1px solid var(--line);
  padding-top: 57px;
}
.doors-page .game-contact h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.doors-page .game-contact .email-link {
  color: #d9c592;
}
.doors-page .site-footer {
  background: #0b0f16;
}
/* ポリシーは作品の演出から離し、読みやすい本文に統一する */
.policy-main {
  max-width: 800px;
  padding-top: 42px;
}
.policy-main > h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 10px;
}
.policy-app {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.policy-date {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 36px;
}
.policy-body {
  line-height: 1.95;
}
.policy-body h2 {
  font-size: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin: 38px 0 18px;
}
.policy-body ul {
  padding-left: 1.5em;
  margin: 18px 0;
}
.policy-body li {
  padding-left: 4px;
  margin: 8px 0;
}
.policy-details {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 12px 20px;
  margin: 20px 0;
}
.policy-details dt {
  font-weight: 650;
}
.policy-details dd {
  margin: 0;
}
.policy-body a {
  color: #245d9b;
}
.policy-notice {
  padding: 24px 26px;
  border: 1px solid #d7dee7;
  border-left: 4px solid #687e98;
  background: #f5f7fa;
  margin: 30px 0;
}
.policy-notice strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.125rem;
}
.policy-contact {
  padding-top: 25px;
}
.policy-contact h2 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}
.policy-contact .email-link {
  font-size: 1rem;
}
.not-found {
  padding: 100px 0;
  min-height: 55vh;
}
.not-found h1 {
  font-size: 2rem;
  margin: 20px 0;
}
.not-found .button {
  margin-top: 24px;
}
/* 小さな画面でも本文とリンクを省略しない */
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header-inner {
    min-height: 80px;
    gap: 14px;
  }
  .brand {
    font-size: 1rem;
  }
  .site-nav {
    gap: 18px;
  }
  .site-nav a {
    font-size: 0.875rem;
  }
  .home-intro {
    padding: 58px 0 49px;
  }
  .home-intro h1 {
    font-size: 2.625rem;
  }
  .intro-copy {
    font-size: 1rem;
  }
  .work-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .work-copy h3 {
    font-size: 1.375rem;
  }
  .home-works {
    padding-bottom: 50px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .home-contact {
    padding-top: 34px;
  }
  .site-footer {
    margin-top: 54px;
  }
  .section-title {
    gap: 12px;
  }
  .section-title h2 {
    font-size: 1.5rem;
  }
  .footer-inner {
    gap: 16px;
  }
  .actions {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .usagi-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .usagi-hero-copy {
    max-width: 650px;
  }
  .usagi-hero-art {
    max-width: 760px;
    transform: rotate(1deg);
    margin: 8px 12px 15px 0;
  }
  .usagi-hero h1 {
    font-size: 3rem;
  }
  .usagi-hero h2 br {
    display: none;
  }
  .feature-grid {
    gap: 18px;
  }
  .usagi-page .feature-grid > article {
    padding: 22px 18px;
  }
  .doors-hero-grid {
    gap: 38px;
  }
  .doors-hero-visual {
    margin: 0;
    max-width: 300px;
  }
  .doors-title {
    font-size: 2.4rem;
    letter-spacing: 0.06em;
  }
  .doors-gallery {
    gap: 22px;
  }
  .game-header .site-nav {
    gap: 18px;
  }
}
@media (max-width: 700px) {
  .game-header .header-inner {
    align-items: flex-start;
    min-height: 0;
    padding: 19px 0;
    flex-direction: column;
    gap: 12px;
  }
  .game-header .site-nav {
    gap: 23px;
  }
  .game-brand img {
    width: 32px;
    height: 32px;
  }
  .game-header .brand {
    font-size: 1.0625rem;
  }
  .game-section {
    padding: 49px 0;
  }
  .usagi-hero {
    padding: 37px 0 35px;
  }
  .usagi-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }
  .usagi-hero h2 {
    font-size: 1.4375rem;
    margin: 16px 0;
  }
  .usagi-hero-art {
    border-width: 5px;
    border-radius: 11px;
    box-shadow: 5px 7px 0 #59cf91;
  }
  .usagi-ribbon .wrap {
    gap: 8px 18px;
    font-size: 0.875rem;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 26px;
  }
  .usagi-page .feature-grid > article {
    padding: 23px;
  }
  .feature-grid p {
    font-size: 1rem;
  }
  .usagi-gallery {
    grid-template-columns: 1fr;
    gap: 27px;
  }
  .game-gallery figcaption {
    font-size: 1rem;
  }
  .usagi-page .game-contact {
    padding-top: 44px;
  }
  .doors-hero {
    padding: 42px 0 50px;
  }
  .doors-hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .doors-title {
    font-size: clamp(1.8rem, 8vw, 3rem);
    letter-spacing: 0.06em;
  }
  .doors-catch {
    font-size: 1.65rem;
    margin-top: 22px;
  }
  .doors-hero .eyebrow {
    margin-bottom: 20px;
  }
  .doors-hero-visual {
    width: min(86%, 335px);
  }
  .doors-page .game-facts {
    gap: 8px 18px;
  }
  .doors-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 3px 16px;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: min(76%, 270px);
  }
  .doors-gallery figure {
    scroll-snap-align: start;
  }
  .doors-gallery a {
    padding: 5px;
  }
  .doors-gallery-heading {
    margin-bottom: 22px !important;
  }
  .doors-page .feature-grid {
    gap: 30px;
  }
  .doors-page .game-contact {
    padding-top: 40px;
  }
  .game-contact .email-link {
    font-size: 1rem;
  }
  .support-links {
    gap: 18px;
  }
  .policy-main {
    padding-top: 27px;
  }
  .policy-details {
    grid-template-columns: 1fr;
    gap: 4px;
    margin: 22px 0;
  }
  .policy-details dd {
    margin-bottom: 14px;
  }
  .policy-notice {
    padding: 20px;
  }
  .policy-main > h1 {
    font-size: 1.8rem;
  }
  .not-found {
    padding: 64px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
