:root {
  color-scheme: light;
  --ink: #17212a;
  --muted: #5d655f;
  --paper: #f7f5f0;
  --surface: #fffefa;
  --line: #d8d5ce;
  --leaf: #356549;
  --leaf-dark: #274e38;
  --gold: #a5681c;
  --slate: #627687;
  --rust: #a95f36;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
summary {
  font: inherit;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.92em;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border: 2px solid var(--leaf);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: currentColor;
}

.outline-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  width: min(1340px, calc(100% - 48px));
  margin: 0 auto;
}

.site-nav {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.navlinks,
.nav-main,
.language-nav {
  display: flex;
  align-items: center;
}

.navlinks {
  gap: 40px;
}

.nav-main {
  gap: 34px;
}

.nav-main a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-main a:hover {
  color: var(--leaf);
}

.language-nav {
  gap: 8px;
}

.language-nav button {
  display: inline-flex;
  min-width: 48px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.language-nav button[aria-current="page"] {
  border-color: var(--leaf);
  color: var(--leaf);
  font-weight: 800;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.top-main {
  margin: 0;
  padding: 0 0 56px;
}

.top-hero {
  margin: 0;
}

.hero-copy {
  width: min(1340px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 18px 42px;
}

.hero-copy h1 {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(52px, 6.2vw, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
  word-spacing: 0.08em;
}

.lead {
  max-width: none;
  margin: 14px 0 0;
  color: var(--ink);
  font-size: clamp(17px, 1.55vw, 22px);
  font-weight: 500;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-width: min(318px, 100%);
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 28px;
  border: 1px solid var(--leaf);
  border-radius: 4px;
  background: var(--leaf);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  border-color: var(--leaf-dark);
  background: var(--leaf-dark);
  transform: translateY(-1px);
}

.hero-stage {
  position: relative;
  aspect-ratio: 2.75 / 1;
  overflow: hidden;
  background: #ece7df;
}

.hero-visual {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 51%;
}

.pet-stage {
  position: absolute;
  pointer-events: none;
}

.windows-stage {
  top: 14.6%;
  left: 8.9%;
  width: 40%;
  height: 56.1%;
}

.mac-stage {
  top: 14.7%;
  left: 51.5%;
  width: 39.6%;
  height: 56.5%;
}

.web-pet {
  position: absolute;
  bottom: 10.5%;
  left: 0;
  width: 13.56%;
  min-width: 24px;
  min-height: 24px;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background-color: transparent;
  background-image: var(--pet-image);
  background-repeat: no-repeat;
  background-position: 0 50%;
  background-size: 1400% auto;
  cursor: pointer;
  filter: drop-shadow(0 4px 4px rgba(21, 25, 24, 0.2));
  pointer-events: auto;
  transform-origin: 50% 100%;
  will-change: left, background-position, transform;
}

.web-pet:hover {
  filter: drop-shadow(0 5px 5px rgba(21, 25, 24, 0.3));
}

.web-pet:focus-visible {
  outline: 3px solid #f1a533;
  outline-offset: 1px;
}

.web-pet.is-reacting {
  animation: pet-bounce 280ms ease-in-out 2 alternate;
}

.hero-demo-hint {
  position: absolute;
  right: 3.2%;
  bottom: 2.4%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(23, 33, 42, 0.22);
  border-radius: 4px;
  background: rgba(255, 254, 250, 0.86);
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.pet-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes pet-bounce {
  from { translate: 0 0; }
  to { translate: 0 -7%; }
}

.shortcut-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  min-height: 138px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.92);
}

.shortcut-nav a {
  display: flex;
  min-height: 138px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

.shortcut-nav a:hover {
  background: #e9efe9;
}

.shortcut-icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--leaf);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shortcut-icon.filled-icon {
  fill: var(--leaf);
  stroke: none;
}

.content-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 54px;
}

[data-language-section="en"] {
  display: none;
}

html[lang="en"] [data-language-section="ja"] {
  display: none;
}

html[lang="en"] section[data-language-section="en"] {
  display: block;
}

html[lang="en"] section.release-overview[data-language-section="en"] {
  display: grid;
}

.release-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(280px, 0.62fr);
  gap: 52px;
  padding: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.78);
}

section.release-overview[data-language-section="en"] {
  display: none;
}

html[lang="en"] section.release-overview[data-language-section="en"] {
  display: grid;
}

.release-overview h2,
.content-shell h2 {
  margin: 0;
  font-family: Inter, "Noto Sans JP", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.intro-copy,
.download-note,
.section-head > p,
.features p {
  color: var(--muted);
  line-height: 1.75;
}

.intro-copy {
  margin: 12px 0 0;
}

.download-note {
  margin: 14px 0 0;
  font-size: 13px;
}

.release-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.release-meta span {
  display: flex;
  min-height: 44px;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}

.release-meta strong {
  color: var(--ink);
}

.release-note {
  margin-top: 14px;
  padding: 13px 15px;
  border-left: 3px solid var(--leaf);
  background: #edf2ec;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.release-note strong {
  display: block;
  margin-bottom: 3px;
  color: var(--leaf-dark);
  font-size: 13px;
}

.download-alternatives h3 {
  margin: 0;
  color: var(--leaf);
  font-size: 15px;
}

.detail-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.detail-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.detail-links a:hover {
  border-color: var(--leaf);
  color: var(--leaf-dark);
}

.content-shell > section:not(.release-overview) {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.content-shell > section + section {
  margin-top: 30px;
}

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

.section-head > p {
  max-width: 620px;
  margin: 0;
  font-size: 13px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--leaf);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.features article {
  min-width: 0;
  padding-top: 11px;
  border-top: 2px solid var(--gold);
}

.features article:nth-child(2),
.features article:nth-child(5) {
  border-color: var(--slate);
}

.features article:nth-child(3),
.features article:nth-child(6) {
  border-color: var(--leaf);
}

.features article:nth-child(4) {
  border-color: var(--rust);
}

.features h3,
.coat-card h3,
.version-card h3,
.history-item h3 {
  margin: 0;
}

.features h3 {
  font-size: 15px;
}

.features p {
  margin: 6px 0 0;
  font-size: 13px;
}

.coat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.coat-card {
  min-width: 0;
  min-height: 128px;
  padding: 10px 8px 9px;
  border-top: 3px solid var(--gold);
  background: rgba(255, 254, 250, 0.8);
  text-align: center;
}

.coat-card:nth-child(2),
.coat-card:nth-child(8) { border-color: #4e4c48; }
.coat-card:nth-child(3),
.coat-card:nth-child(10) { border-color: var(--slate); }
.coat-card:nth-child(4) { border-color: #797d78; }
.coat-card:nth-child(5),
.coat-card:nth-child(11) { border-color: #c8ad78; }
.coat-card:nth-child(6) { border-color: #b88b56; }
.coat-card:nth-child(7) { border-color: #795341; }
.coat-card:nth-child(9) { border-color: var(--leaf); }

.coat-card img {
  display: block;
  width: 96px;
  height: 64px;
  margin: 0 auto 6px;
  object-fit: contain;
  image-rendering: pixelated;
}

.coat-card h3 {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1.35;
}

.coat-card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.version-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding-top: 12px;
  border-top: 3px solid var(--leaf);
}

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

.version-card time {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.version-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.content-disclosure {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.content-disclosure > summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.content-disclosure > summary::-webkit-details-marker {
  display: none;
}

.content-disclosure > summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 500;
}

.content-disclosure[open] > summary::after {
  content: "−";
}

.disclosure-body {
  padding: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.disclosure-body p {
  margin: 0;
}

.settings-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 16px;
  padding: 0;
  counter-reset: settings-step;
  list-style: none;
}

.settings-steps li {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.82);
  counter-increment: settings-step;
}

.settings-steps li::before {
  content: counter(settings-step);
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  background: var(--leaf);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.settings-steps strong,
.settings-steps span {
  display: block;
}

.settings-steps strong {
  color: var(--ink);
  font-size: 13px;
}

.settings-steps span {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.6;
}

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

.settings-shots figure {
  min-width: 0;
  margin: 0;
}

.settings-shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #fff;
}

.settings-shots figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.history-list {
  display: grid;
}

.history-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid #e2e1da;
}

.history-item:first-child {
  border-top: 0;
}

.history-item h3 {
  color: #26332c;
  font-size: 12px;
}

.history-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.release-archive-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--leaf);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.release-archive-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  width: min(1120px, calc(100% - 48px));
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--leaf);
  font-weight: 700;
}

@media (max-width: 900px) {
  .nav-main {
    gap: 18px;
  }

  .nav-main a[data-anchor="features"] {
    display: none;
  }

  .hero-copy {
    padding-inline: 0;
  }

  .release-overview {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

@media (max-width: 680px) {
  .nav-main {
    display: none;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .settings-steps,
  .settings-shots {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  html {
    scroll-padding-top: 76px;
  }

  .site-header,
  .hero-copy,
  .content-shell,
  .site-footer {
    width: calc(100% - 24px);
  }

  .site-nav {
    min-height: 70px;
    gap: 12px;
  }

  .brand {
    font-size: 18px;
  }

  .navlinks {
    gap: 10px;
  }

  .language-nav button {
    min-width: 42px;
    min-height: 44px;
    font-size: 14px;
  }

  .hero-copy {
    padding: 32px 0 30px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 12vw, 54px);
    line-height: 0.98;
  }

  .lead {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.7;
  }

  .actions {
    display: grid;
    gap: 12px;
    margin-top: 22px;
  }

  .button {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 0 18px;
    font-size: 15px;
  }

  .button .icon {
    width: 24px;
    height: 24px;
  }

  .hero-demo-hint {
    display: none;
  }

  .web-pet {
    bottom: 9.5%;
  }

  .shortcut-nav {
    min-height: 104px;
  }

  .shortcut-nav a {
    min-width: 0;
    min-height: 104px;
    gap: 7px;
    padding: 8px 2px;
    font-size: 13px;
    text-align: center;
  }

  .shortcut-icon {
    width: 26px;
    height: 26px;
  }

  .content-shell {
    padding-top: 36px;
  }

  .release-overview {
    padding: 22px 18px;
  }

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

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

  .coat-card {
    min-height: 124px;
  }

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

  .history-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

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

  .button {
    transition: none;
  }

  .web-pet.is-reacting {
    animation: none;
  }
}
