:root {
  --green-900: #0d2f22;
  --green-800: #164b31;
  --green-700: #1d6a3f;
  --green-100: #e8f5e8;
  --line: #d9e6dc;
  --paper: #ffffff;
  --ink: #17231d;
  --muted: #5d6b63;
  --yellow: #ffd93d;
  --yellow-shadow: #bd8d00;
  --blue: #246fc7;
  --red: #d64236;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.7;
  background: #f7faf7;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px max(18px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(13, 47, 34, 0.12);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 190px;
}

.update-badge {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--green-700);
}

.nav-play {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--yellow);
  color: #141414;
  box-shadow: 0 3px 0 var(--yellow-shadow);
}

.hero {
  position: relative;
  display: grid;
  align-items: start;
  overflow: hidden;
  color: var(--ink);
  background: #f4fbf6;
}

.hero-content {
  position: relative;
  width: min(100% - 36px, 1100px);
  margin: 0 auto;
  padding: 0 0 52px;
}

.hero-intro {
  max-width: 940px;
  padding: clamp(24px, 4vw, 44px) 0 clamp(24px, 3vw, 34px);
}

.hero-intro h1 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0;
  word-break: keep-all;
}

.hero-summary {
  max-width: 920px;
  margin: 15px 0 0;
  color: var(--green-800);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  font-weight: 650;
  line-height: 1.75;
}

.hero-summary span,
.hero-after p span {
  display: block;
}

.hero-play {
  min-height: 58px;
  margin-top: 20px;
  padding: 15px 30px;
  font-size: 1.08rem;
}

.hero-intro .hero-play {
  display: none;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-benefits li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 78px;
  padding: 11px 12px;
  border: 1px solid rgba(29, 106, 63, 0.18);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(21, 59, 39, 0.04);
}

.hero-benefits img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.hero-benefit-copy {
  display: block;
  min-width: 0;
}

.hero-benefit-copy strong,
.hero-benefit-copy span {
  display: block;
}

.hero-benefit-copy strong {
  color: var(--green-900);
  font-size: 0.94rem;
  line-height: 1.35;
  word-break: keep-all;
}

.hero-benefit-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.45;
}

.version-choice {
  margin-top: 22px;
}

.version-choice > h2 {
  margin: 0 0 12px;
  color: var(--green-900);
  font-size: 1.12rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.version-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.version-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 220px;
  padding: 15px;
  border: 1px solid rgba(29, 106, 63, 0.22);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(21, 59, 39, 0.04);
}

.version-card-recommended {
  border-color: rgba(29, 106, 63, 0.42);
  background: #fffdf1;
  box-shadow: 0 3px 10px rgba(21, 59, 39, 0.08);
}

.version-card-badge {
  align-self: flex-start;
  margin: 0 0 7px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--yellow);
  color: #141414;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.25;
}

.version-card h3 {
  margin: 0;
  color: var(--green-900);
  font-size: 1.18rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.version-card .version-card-featured-title {
  color: var(--green-900);
  font-size: 1.45rem;
  line-height: 1.25;
}

.version-card-subtitle {
  margin: 3px 0 0;
  color: var(--green-700);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.4;
}

.version-card-description {
  margin: 10px 0 13px;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.55;
}

.version-card-button {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 9px 10px;
  font-size: 0.79rem;
  text-align: center;
}

.version-card-button-classic {
  border: 1px solid var(--green-700);
  background: #fff;
  color: var(--green-900);
}

.version-card-button-classic:hover,
.version-card-button-classic:focus-visible {
  background: #edf8f0;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subpage-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-title-screen {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 75vh;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 18px 42px rgba(21, 59, 39, 0.16);
}

.hero-title-link {
  display: block;
  position: relative;
  width: 100%;
  max-width: 500px;
  text-decoration: none;
}

.hero-title-link:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.hero-title-link:hover .hero-title-screen,
.hero-title-link:focus-visible .hero-title-screen {
  filter: brightness(1.03);
  box-shadow: 0 20px 46px rgba(21, 59, 39, 0.22);
}

.hero-after {
  max-width: 860px;
  margin: 26px auto 0;
  text-align: center;
}

.hero-after h2 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-after p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  line-height: 1.25;
}

.button-primary {
  background: var(--yellow);
  color: #141414;
  box-shadow: 0 5px 0 var(--yellow-shadow);
}

.button-secondary {
  border: 1px solid rgba(13, 47, 34, 0.2);
  background: #fff;
  color: var(--green-900);
}

.button-large {
  min-height: 56px;
  padding-inline: 30px;
  font-size: 1.08rem;
}

.button:hover,
.button:focus-visible {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(3px);
}

.section {
  padding: clamp(58px, 9vw, 96px) 0;
}

.section-inner {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
}

.two-column {
  display: grid;
  gap: 34px;
  align-items: center;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  line-height: 1.22;
  letter-spacing: 0;
}

.section p {
  margin: 18px 0 0;
  color: var(--muted);
}

.intro {
  background: var(--paper);
}

.intro-copy {
  max-width: 1100px;
  display: grid;
  grid-template-areas:
    "label"
    "title"
    "image"
    "body";
  gap: 18px;
  align-items: start;
}

.intro-copy > .section-label {
  grid-area: label;
  margin: 0;
}

.intro-copy > .highlight-heading {
  grid-area: title;
  justify-self: start;
}

.intro-field {
  grid-area: image;
  width: min(100%, 430px);
  margin: 2px auto 0;
}

.intro-field img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(13, 47, 34, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(21, 59, 39, 0.08);
}

.intro-body {
  grid-area: body;
}

.intro-body p:first-child {
  margin-top: 0;
}

.intro-copy p span {
  display: block;
}

.highlight-heading {
  display: inline-block;
  padding: 14px 18px;
  border-left: 8px solid var(--yellow);
  border-radius: 8px;
  background: linear-gradient(90deg, #e8f5e8 0%, #fff9d7 100%);
  box-shadow: 0 10px 24px rgba(21, 59, 39, 0.1);
}

.section .section-label {
  color: var(--green-700);
}

.screen-figure,
.wide-shot {
  margin: 0;
}

.screen-figure {
  justify-self: center;
  width: min(100%, 360px);
}

.screen-figure img,
.wide-shot img,
.feature-card img {
  border: 1px solid rgba(13, 47, 34, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(21, 59, 39, 0.14);
}

.screen-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.feature-band {
  background:
    linear-gradient(180deg, #eaf6ec 0%, #f7faf7 100%);
}

.feature-grid {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.feature-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.feature-card h3 {
  margin: 18px 18px 0;
  color: var(--green-900);
  font-size: 1.2rem;
  line-height: 1.35;
}

.feature-card p {
  margin: 10px 18px 20px;
}

.pc-section {
  background: #fff;
}

.devlog-promo {
  background: var(--green-900);
  color: #fff;
}

.devlog-promo p {
  color: rgba(255, 255, 255, 0.82);
}

.devlog-promo .section-label {
  color: var(--yellow);
}

.promo-inner {
  display: grid;
  gap: 24px;
  align-items: center;
}

.final-cta {
  text-align: center;
  background:
    linear-gradient(180deg, rgba(232, 245, 232, 0.9), rgba(255, 255, 255, 1));
}

.final-cta .button {
  margin-top: 26px;
}

.site-footer {
  padding: 28px 0;
  color: #fff;
  background: #102219;
}

.footer-inner {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--yellow);
}

.subpage-hero {
  padding: 48px 0 34px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(13, 47, 34, 0.96), rgba(29, 106, 63, 0.88)),
    url("../images/hero-pc-screen.jpg") center / cover no-repeat;
}

.subpage-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
}

.subpage-hero .eyebrow {
  margin-bottom: 8px;
}

.newsletter-section {
  padding: 24px 0 0;
  background: #fff;
}

.newsletter-box {
  display: grid;
  gap: 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(29, 106, 63, 0.18);
  border-radius: 8px;
  background: linear-gradient(90deg, #e8f5e8 0%, #fff9d7 100%);
  box-shadow: 0 12px 28px rgba(21, 59, 39, 0.1);
}

.newsletter-box h2 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.25;
}

.newsletter-box .section-label {
  color: var(--green-700);
}

.newsletter-box p:not(.section-label) {
  margin: 10px 0 0;
  color: var(--muted);
}

.newsletter-box .button {
  justify-self: start;
}

.devlog-list-section {
  padding: clamp(34px, 4vw, 48px) 0 clamp(58px, 9vw, 96px);
  background: #fff;
}

.devlog-list-section h2 {
  font-size: clamp(1.55rem, 3.8vw, 2.4rem);
}

.devlog-table-wrap {
  overflow-x: auto;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.devlog-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

.devlog-table th,
.devlog-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.devlog-table th {
  color: #fff;
  background: var(--green-800);
  font-size: 0.92rem;
}

.devlog-table tr:last-child td {
  border-bottom: 0;
}

.devlog-table time {
  white-space: nowrap;
  font-weight: 800;
}

.devlog-table a {
  color: var(--blue);
  font-weight: 900;
}

@media (min-width: 900px) {
  .hero-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "intro image"
      "after after";
    column-gap: 32px;
    row-gap: 26px;
    align-items: start;
    padding: 28px 0 48px;
  }

  .hero-intro {
    grid-area: intro;
    padding: 0;
  }

  .hero-title-link {
    grid-area: image;
    justify-self: start;
  }

  .hero-title-screen {
    margin: 0;
  }

  .hero-after {
    grid-area: after;
    margin-top: 0;
  }

  .intro-copy {
    grid-template-columns: minmax(350px, 0.82fr) minmax(0, 1.18fr);
    grid-template-areas:
      "image label"
      "image title"
      "image body";
    column-gap: clamp(32px, 4vw, 48px);
    row-gap: 14px;
  }

  .intro-field {
    width: min(100%, 430px);
    margin: 0;
  }
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 14px;
  }

  .brand img {
    width: 150px;
  }

  .update-badge {
    margin: 0;
    font-size: 0.7rem;
    text-align: right;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 6px 10px;
    width: 100%;
    font-size: 0.8rem;
  }

  .site-nav a:not(.nav-play) {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
  }

  .nav-play {
    width: auto;
    min-height: 38px;
    padding: 6px 10px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    display: grid;
    grid-template-areas:
      "copy"
      "image"
      "benefits"
      "versions"
      "after";
    width: min(100% - 24px, var(--max));
    padding: 0 0 40px;
  }

  .hero-intro {
    display: contents;
    padding: 0;
  }

  .hero-copy {
    grid-area: copy;
    padding: 22px 0 24px;
  }

  .hero-intro h1 {
    font-size: clamp(1.85rem, 9.6vw, 2.25rem);
    line-height: 1.18;
    word-break: keep-all;
  }

  .hero-summary {
    margin-top: 12px;
    line-height: 1.7;
  }

  .hero-play {
    width: 100%;
    min-height: 58px;
    margin-top: 18px;
  }

  .hero-benefits {
    grid-area: benefits;
    gap: 10px;
    margin-top: 20px;
  }

  .version-choice {
    grid-area: versions;
    margin-top: 22px;
  }

  .version-choice-grid {
    grid-template-columns: 1fr;
  }

  .version-card {
    min-height: 0;
  }

  .hero-title-link {
    grid-area: image;
  }

  .hero-title-screen {
    width: 100%;
    max-height: none;
  }

  .hero-after {
    grid-area: after;
    margin-top: 24px;
    text-align: left;
  }

  .devlog-table {
    min-width: 0;
  }

  .devlog-table thead {
    display: none;
  }

  .devlog-table,
  .devlog-table tbody,
  .devlog-table tr,
  .devlog-table td {
    display: block;
  }

  .devlog-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .devlog-table tr:last-child {
    border-bottom: 0;
  }

  .devlog-table td {
    padding: 0;
    border: 0;
  }

  .devlog-table td + td {
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .hero-benefits {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 760px) {
  .two-column {
    grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  }

  .two-column.reverse {
    grid-template-columns: minmax(360px, 1.08fr) minmax(0, 0.92fr);
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .newsletter-box {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .promo-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
