:root {
  font-size: 16px;
  --bg: #f3f5f8;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #5b6472;
  --line: #d7dde8;
  --accent: #1d4ed8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /* background: radial-gradient(circle at top right, #eef3ff 0, #f3f5f8 45%); */
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.7;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner,
.site-main,
.site-footer {
  width: min(960px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.title-image {
  display: block;
  width: 120px;
  height: auto;
}

.header-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-main {
  padding: 2rem 0 3rem;
}

.hero {
  background: var(--paper);
  /* border: 1px solid var(--line); */
  /* border-radius: 18px; */
  padding: 1.4rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-areas:
    "copy visual"
    "store visual";
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.hero-copy {
  grid-area: copy;
}

.hero-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  line-height: 1.3;
}

.hero-copy p {
  margin: 0.8rem 0 0;
}

.hero-store-grid {
  grid-area: store;
  margin-top: 0.9rem;
}

.text-link {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  font-size: 0.92rem;
}

.hero-visual {
  grid-area: visual;
  align-self: center;
  justify-self: center;
  width: min(100%, 320px);
}

.first-view-image {
  display: block;
  width: 100%;
  max-height: 520px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.content-section,
.download-cta {
  background: var(--paper);
  /* border: 1px solid var(--line); */
  /* border-radius: 18px; */
  padding: 1.4rem;
  margin-top: 1rem;
}

h2 {
  text-align: center;
  margin: 0 0 0.9rem;
  font-size: clamp(2.1rem, 1.6vw, 1.4rem);
}

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

.card {
  background: #fbfcff;
  border: 1px solid #e4e9f4;
  border-radius: 14px;
  padding: 1rem 1.05rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.03rem;
}

.card p,
.download-cta p {
  margin: 0;
  color: var(--muted);
}

.store-download-grid {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.store-download-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.qr-image {
  width: 120px;
  height: 120px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.diagnosis-section {
  margin-top: 0.9rem;
  padding: 1rem 0.1rem 0.2rem;
}

.diagnosis-section p {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.store-link {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.store-badge {
  display: block;
  height: 56px;
  width: auto;
  max-width: 100%;
}

.store-link:hover {
  opacity: 0.93;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "store";
  }

  .hero-visual {
    width: min(100%, 280px);
  }
}

@media (max-width: 600px) {
  .header-inner,
  .site-main,
  .site-footer {
    width: min(960px, calc(100% - 1.4rem));
  }

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

  .store-badge {
    height: 50px;
    width: auto;
  }

  .qr-image {
    width: 108px;
    height: 108px;
  }
}
