:root {
  --pagepilot-ink: #17313a;
  --pagepilot-deep: #0d5663;
  --pagepilot-accent: #bc6c25;
  --pagepilot-soft: #f8f4eb;
  --pagepilot-panel: rgba(255, 252, 246, 0.86);
  --pagepilot-shadow: 0 20px 50px rgba(23, 49, 58, 0.14);
}

[data-md-color-scheme="default"] {
  --md-primary-fg-color: #0f5b68;
  --md-primary-fg-color--light: #327684;
  --md-primary-fg-color--dark: #0a424b;
  --md-accent-fg-color: #bc6c25;
  --md-default-bg-color: #fcfaf6;
}

.md-header,
.md-tabs {
  background:
    linear-gradient(135deg, rgba(15, 91, 104, 0.96), rgba(28, 125, 113, 0.92));
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset strong {
  color: var(--pagepilot-ink);
}

.md-typeset h2 {
  border-bottom: 2px solid rgba(15, 91, 104, 0.18);
  padding-bottom: 0.35rem;
  margin-top: 2.4rem;
}

.md-main__inner {
  margin-top: 0;
}

/* ── Custom header layout ── */

/* Spacer between logo and right-side controls */
.pp-header-spacer {
  flex: 1;
}

/* ── Custom header: language switch ── */
.pp-header-lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.25rem;
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.pp-lang-current {
  color: rgba(255, 255, 255, 0.92);
}

.pp-lang-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.15s;
}

.pp-lang-link:hover {
  color: #fff;
  text-decoration: none;
}

.pp-lang-sep {
  color: rgba(255, 255, 255, 0.28);
  font-weight: 400;
}

/* ── Footer: legal links ── */
.pp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin-top: 0.45rem;
  font-size: 0.7rem;
}

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

.pp-footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.hero-band {
  position: relative;
  overflow: hidden;
  padding: 2.25rem 1.5rem;
  margin: 0 0 2rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), transparent 40%),
    linear-gradient(140deg, rgba(15, 91, 104, 0.15), rgba(188, 108, 37, 0.12)),
    linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(245, 239, 226, 0.88));
  box-shadow: var(--pagepilot-shadow);
}

.hero-band::after {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(188, 108, 37, 0.22), transparent 68%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: center;
}

.hero-copy > :last-child {
  margin-bottom: 0;
}

.hero-copy {
  position: relative;
}

.hero-lockup {
  display: block;
  width: min(100%, 430px);
  max-width: 100%;
  margin: 0 0 1rem;
}

.hero-lockup--product {
  width: min(100%, 520px);
}

.hero-title {
  margin: 0 0 0.7rem;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.hero-title--sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero-lead {
  margin-bottom: 0.9rem;
  font-size: 1.08rem;
  color: var(--pagepilot-ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.hero-actions .md-button {
  margin: 0;
}

.hero-media {
  justify-self: end;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 91, 104, 0.12);
  color: var(--pagepilot-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Hero illustration: transparent SVG that carries its own shadows —
   no white card frame (that read as a pasted screenshot). */
.hero-shot {
  width: 100%;
  max-width: 600px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Real screenshots keep a framed card */
.screenshot {
  width: 100%;
  max-width: 620px;
  border-radius: 22px;
  border: 1px solid rgba(15, 91, 104, 0.08);
  box-shadow: 0 18px 40px rgba(23, 49, 58, 0.16);
  background: white;
}

.lang-switch,
.md-typeset > p:first-of-type {
  font-weight: 600;
}

.card-grid,
.manual-grid,
.feature-grid {
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 1.25rem 0 1.5rem;
}

.card-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.manual-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 1rem 0 1.5rem;
}

.value-card,
.feature-card,
.manual-card,
.status-panel {
  height: 100%;
  padding: 1.15rem 1.1rem 1.2rem;
  border: 1px solid rgba(15, 91, 104, 0.1);
  border-radius: 20px;
  background: var(--pagepilot-panel);
  box-shadow: 0 10px 28px rgba(23, 49, 58, 0.08);
}

.value-card h3,
.feature-card p:first-child,
.manual-card h3,
.status-panel h3 {
  margin-top: 0;
}

.feature-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 235, 0.92));
}

.status-panel {
  max-width: 420px;
  margin-left: auto;
}

.status-panel p:last-child {
  margin-bottom: 0;
}

.download-note {
  margin-top: -0.2rem;
  color: var(--pagepilot-deep);
  font-size: 0.95rem;
}

.md-typeset table:not([class]) {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(23, 49, 58, 0.08);
}

.md-typeset table:not([class]) th {
  background: rgba(15, 91, 104, 0.1);
}

.md-typeset .md-button {
  border-radius: 999px;
}

.md-typeset .md-button--primary {
  background: linear-gradient(135deg, #0f5b68, #1c7d71);
  border-color: transparent;
}

.md-typeset .md-button:not(.md-button--primary) {
  border-color: rgba(15, 91, 104, 0.22);
  color: var(--pagepilot-deep);
}

@media screen and (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-band {
    padding: 1.5rem 1rem;
  }

  /* 単一カラムではイラストを中央に置き、横幅を活かす */
  .hero-media {
    justify-self: stretch;
  }

  .hero-shot {
    display: block;
    margin: 0.25rem auto 0;
    max-width: 440px;
  }
}

@media screen and (max-width: 480px) {
  .hero-band {
    padding: 1.125rem 0.75rem;
    border-radius: 18px;
    margin: 0 0 1.5rem;
  }

  .hero-lockup {
    width: min(100%, 300px);
    margin: 0 0 0.75rem;
  }

  .hero-lead {
    font-size: 0.975rem;
  }

  /* ボタンを縦並びにして全幅タップターゲットに */
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .md-button {
    text-align: center;
    justify-content: center;
  }

  .card-grid,
  .feature-grid,
  .manual-grid {
    grid-template-columns: 1fr;
  }
}
