:root {
  --ink: #344b40;
  --muted: #6f7d68;
  --green: #32664d;
  --mint: #eaf0df;
  --paper: #fffdf6;
  --line: #dfe4d8;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: #f7f8f0;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f7f8f0;
  overflow-x: hidden;
}
a { color: inherit; }
a:focus-visible, .play:focus-visible {
  outline: 3px solid #d88635;
  outline-offset: 4px;
}

.site-header, main, footer {
  width: min(880px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}
.site-header {
  padding: 40px 0 18px;
}
.kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #8a9584;
}
h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.lead {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
}
.intro {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.section-heading {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--green);
}

.cards {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}
.card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.card-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--mint);
}
.card-body { min-width: 0; flex: 1; }
.typing-card-icon { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.typing-pc-badge { display: none; }
.typing-touch-device .typing-pc-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.card-icon-text {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 20px;
  font-weight: 800;
}
.card h2,
.card .card-title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
}
.card p {
  margin: 0 0 12px;
  line-height: 1.55;
  color: #4d5c4c;
  font-size: 14px;
}
.play {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 10px;
}
.play:hover { filter: brightness(0.96); }
.play.is-disabled,
.play[aria-disabled="true"] {
  background: #c5ceba;
  color: #fff;
  pointer-events: none;
  cursor: default;
}
.status-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

footer.site-footer {
  margin-top: auto;
  padding: 16px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  overflow-x: hidden;
  background: #f7f8f0;
}
.site-legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 4px;
  max-width: 100%;
  margin: 0;
}
.site-legal-nav a {
  color: #6f7d68;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.site-legal-nav a:hover {
  color: var(--green);
  text-decoration: underline;
}
.site-legal-nav a + a::before {
  content: "｜";
  margin: 0 0.55em;
  color: #c6cfb9;
  font-weight: 400;
  pointer-events: none;
}
.footer-copy {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #85907e;
  text-align: center;
}
.footer-copy a {
  color: inherit;
  text-decoration: none;
}
.footer-copy a:hover {
  text-decoration: underline;
}
.footer-back {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.footer-back a {
  color: var(--muted);
  text-decoration: none;
}
.footer-back a:hover {
  color: var(--green);
  text-decoration: underline;
}

.doc-crumb {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}
.doc-crumb a { color: var(--green); text-decoration: none; }
.doc-crumb a:hover { text-decoration: underline; }
.doc h2 {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 800;
}
.doc p, .doc li {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.75;
  color: #4d5c4c;
}
.doc ul { margin: 0 0 12px; padding-left: 1.25em; }
.doc a { color: var(--green); }
.doc .doc-links { margin-top: 22px; }

.home-header { padding-top: 16px; }
.home-about {
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 246, 0.72);
  color: #5c6b5a;
  font-size: 13px;
  line-height: 1.7;
}
.home-pick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.home-picks .section-heading { margin-bottom: 8px; }
.home-pick .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}
.home-more { margin: 2px 0 0; }
.home-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 12px;
  border: 2px solid var(--green);
  background: var(--mint);
  color: #244a38;
  font-weight: 800;
  text-decoration: none;
}
.home-more a:hover { filter: brightness(0.97); }

@media (min-width: 720px) {
  .home-pick-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-header { padding-top: 28px; }
  .home-header { padding-top: 12px; }
  h1 { font-size: 26px; }
  .card { flex-direction: column; }
  .card.home-pick { flex-direction: row; align-items: flex-start; }
  .site-header, main, footer {
    width: min(880px, calc(100% - 32px));
  }
  footer.site-footer { padding: 14px 0 24px; }
}
