:root {
  --bg: #ffffff;
  --surface: #fafafa;
  --surface-strong: #f3f3f3;
  --line: #e8e8e8;
  --ink: #111111;
  --ink-soft: #4b4b4b;
  --accent: #fc26a9;
  --accent-soft: #ffe7f6;
  --button-start: #ffaf00;
  --button-end: #ffd95a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 6px;
  --content: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Lato", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

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

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

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand img {
  width: 34px;
  height: 34px;
}

.header-nav,
.header-cta {
  display: flex;
  align-items: center;
}

.header-nav {
  gap: 40px;
  justify-content: flex-start;
  flex: 1;
  padding-left: 18px;
}

.header-nav a {
  color: var(--ink-soft);
  font-weight: 700;
}

.header-nav a:hover,
.lang-menu a:hover,
.community-links a:hover,
.meta-links a:hover {
  color: var(--accent);
}

.header-cta {
  gap: 14px;
}

.button,
.button-secondary,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.button,
.button-secondary {
  min-height: 50px;
  padding: 0 38px;
}

.button {
  background: linear-gradient(90deg, var(--button-start), var(--button-end));
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(255, 186, 28, 0.28);
}

.lang-switch {
  position: relative;
}

.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
  color: var(--ink-soft);
  font-weight: 700;
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-flag {
  font-size: 1.45rem;
  line-height: 1;
}

.lang-code {
  font-size: 0.95rem;
}

.lang-caret {
  font-size: 0.8rem;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 148px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.lang-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 700;
  white-space: nowrap;
}

.lang-menu .active {
  background: #f7f7f7;
  color: var(--ink);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.text-link {
  gap: 8px;
  color: var(--accent);
}

.button:hover,
.button-secondary:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.hero {
  padding: 74px 0 84px;
}

.hero-center {
  text-align: center;
}

.hero-center h1,
.section-title,
.cta-banner h2,
.help-hero h1 {
  margin: 0;
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-center h1 span {
  display: block;
}

.hero-copy,
.section-copy,
.quote-author,
.panel-copy p,
.download-footnote,
.community-copy p,
.footer-inner,
.help-copy p,
.help-copy li,
.shortcut-table td,
.shortcut-table th {
  color: var(--ink-soft);
}

.hero-copy,
.section-copy {
  width: min(720px, 100%);
  margin: 16px auto 0;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-art {
  width: min(210px, 28vw);
  margin: 52px auto 0;
}

.hero-art img {
  width: 100%;
}

.feature-showcase {
  width: min(800px, 100%);
  margin: 46px auto 34px;
  box-shadow: var(--shadow);
}

.feature-showcase img {
  width: 100%;
}

.section {
  padding: 90px 0;
}

.section.section-muted {
  background: var(--surface);
}

.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.cards-3,
.download-grid,
.split-panels,
.help-grid {
  display: grid;
  gap: 26px;
}

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

.cards-3 .panel:last-child:nth-child(3),
.download-grid a:last-child:nth-child(4) {
  grid-column: auto;
}

.panel,
.download-card,
.community-card,
.help-card,
.shortcuts-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.panel,
.community-card,
.help-card,
.shortcuts-card {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.panel img,
.community-card img,
.help-card img {
  width: 100%;
}

.panel-copy,
.community-copy,
.help-copy {
  padding: 28px;
}

.panel-copy h3,
.community-copy h3,
.help-copy h3,
.quote-text,
.download-card strong {
  margin: 0 0 12px;
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-size: 1.45rem;
  line-height: 1.35;
}

.panel-copy p,
.community-copy p,
.help-copy p {
  margin: 0;
}

.testimonial-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.38)),
    url("./assets/cta-warm.jpg") center/cover;
  color: #ffffff;
  padding: 52px 40px;
}

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

.quote-card {
  padding: 18px 0;
}

.quote-text {
  color: #ffffff;
  font-size: 2rem;
}

.quote-author {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

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

.download-card {
  padding: 28px 22px;
  text-align: center;
  background: #ffffff;
}

.download-card small {
  display: block;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.download-card strong {
  display: block;
  font-size: 1.25rem;
}

.download-card span {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 700;
}

.download-card:hover {
  border-color: rgba(252, 38, 169, 0.25);
}

.download-footnote {
  margin-top: 24px;
  text-align: center;
  font-size: 1.1rem;
}

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

.community-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.community-links a,
.meta-links a {
  color: var(--accent);
  font-weight: 700;
}

.cta-banner {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.32)),
    url("./assets/cta-warm.jpg") center/cover;
  color: #ffffff;
  text-align: center;
  padding: 80px 24px;
}

.cta-banner h2,
.cta-banner p {
  color: #ffffff;
}

.cta-banner p {
  margin: 14px auto 0;
  width: min(620px, 100%);
  font-size: 1.15rem;
}

.site-footer {
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.95rem;
}

.help-hero {
  padding: 72px 0 36px;
  text-align: center;
}

.section-heading {
  width: min(820px, 100%);
  margin: 0 auto;
}

.section-heading p {
  margin: 16px auto 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
}

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

.help-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.help-stack {
  display: grid;
  gap: 24px;
}

.toc-card,
.help-section,
.help-point {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.toc-card,
.help-section {
  padding: 28px;
}

.toc-card {
  position: sticky;
  top: 92px;
}

.toc-card h2,
.help-section h2,
.help-point h3 {
  margin: 0;
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
}

.toc-card h2,
.help-section h2 {
  font-size: 1.5rem;
  line-height: 1.3;
}

.toc-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.toc-links a {
  color: var(--ink-soft);
  font-weight: 700;
}

.help-section > p + p,
.help-section > ul + p {
  margin-top: 16px;
}

.help-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.help-point {
  padding: 20px;
}

.help-point h3 {
  font-size: 1.1rem;
}

.help-point p,
.toc-links a,
.info-list li,
.callout,
.help-section > p {
  color: var(--ink-soft);
}

.help-point p {
  margin: 10px 0 0;
}

.info-list {
  margin: 20px 0 0;
  padding-left: 20px;
}

.info-list li + li {
  margin-top: 10px;
}

.callout {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--accent-soft);
}

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

.shortcut-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.shortcut-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink-soft);
  font-weight: 700;
}

.help-card {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
}

.help-card.reverse {
  grid-template-columns: 1fr minmax(260px, 420px);
}

.help-card.reverse img {
  order: 2;
}

.help-card.reverse .help-copy {
  order: 1;
}

.help-copy ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.shortcuts-card {
  padding: 18px;
}

.shortcut-table {
  width: 100%;
  border-collapse: collapse;
}

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

.shortcut-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-nav {
    order: 3;
    flex: 0 0 100%;
    justify-content: center;
    padding-left: 0;
  }

  .cards-3,
  .download-grid,
  .split-panels,
  .testimonial-grid,
  .help-points,
  .help-layout {
    grid-template-columns: 1fr;
  }

  .help-card,
  .help-card.reverse {
    grid-template-columns: 1fr;
  }

  .help-card.reverse img,
  .help-card.reverse .help-copy {
    order: initial;
  }

  .toc-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(var(--content), calc(100% - 24px));
  }

  .site-header {
    position: static;
  }

  .header-cta {
    width: 100%;
    justify-content: center;
  }

  .lang-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero {
    padding-top: 42px;
  }

  .section {
    padding: 68px 0;
  }

  .panel-copy,
  .community-copy,
  .help-copy {
    padding: 22px;
  }

  .testimonial-band,
  .cta-banner {
    padding: 44px 20px;
  }

  .hero-art {
    width: min(180px, 48vw);
    margin-top: 28px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
