/* SoloDeck の紹介ページ。色はアプリ（src/app/globals.css）と同じ紺と無彩色 */
:root {
  --navy: hsl(222 47% 11%);
  --navy-soft: hsl(222 40% 22%);
  --text: hsl(222 47% 11%);
  --muted: hsl(215 16% 42%);
  --line: hsl(214 32% 91%);
  --bg-soft: hsl(210 40% 97%);
  --accent: hsl(160 84% 25%); /* emerald-700 */
  --radius: 12px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 4px 16px rgb(15 23 42 / 0.05);
  --font: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.8;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.container {
  width: min(1080px, 100% - 40px);
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100% - 40px);
  margin-inline: auto;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand svg {
  width: 28px;
  height: 28px;
}

/* ボタン */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

.button:hover,
.button:focus-visible {
  background: var(--navy-soft);
}

.button.small {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.button.large {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* ファーストビュー */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  background:
    radial-gradient(60% 70% at 85% 10%, hsl(160 70% 92% / 0.9), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, hsl(222 60% 93% / 0.9), transparent 70%),
    linear-gradient(180deg, var(--bg-soft), #fff);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.text-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid hsl(160 84% 25% / 0.4);
}

.text-link:hover,
.text-link:focus-visible {
  border-bottom-color: var(--accent);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* 見出しは言葉のまとまり（span）の途中で改行しない */
.hero h1 span,
.section-title span,
.showcase h3 span {
  display: inline-block;
}

.hero .lead {
  margin: 0 0 32px;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero .note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ブラウザの枠で囲んだ画面 */
.browser {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 6px rgb(15 23 42 / 0.06), 0 24px 48px -12px rgb(15 23 42 / 0.18);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.browser-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: hsl(214 20% 82%);
}

.browser-bar span {
  margin-left: 12px;
  padding: 2px 12px;
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 0.75rem;
}

.browser img {
  width: 100%;
  height: auto;
}

.hero-shot {
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
}

/* 主な機能: 説明と画面を左右交互に */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 96px;
}

.showcase.reverse .showcase-text {
  order: 2;
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.showcase h3 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.5;
}

.showcase-text > p {
  margin: 0 0 20px;
  color: var(--muted);
}

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: hsl(160 70% 92%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.subsection-title {
  margin: 0 0 24px;
  font-size: 1.25rem;
  text-align: center;
}

/* セクション */
section {
  padding: 80px 0;
}

section.soft {
  background: var(--bg-soft);
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.5;
  text-align: center;
}

.section-lead {
  margin: 0 auto 48px;
  max-width: 640px;
  color: var(--muted);
  text-align: center;
}

/* カード */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.card h3 svg {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--navy);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  display: inline-block;
  margin-left: 4px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
  vertical-align: middle;
}

/* 一人会社ならでは */
.feature-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.feature-row:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-row .num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.feature-row h3 {
  margin: 4px 0 8px;
  font-size: 1.15rem;
}

.feature-row p {
  margin: 0;
  color: var(--muted);
}

/* 悩みと、SoloDeck での解決 */
.pains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pains li {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 16px;
  row-gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.pain-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: hsl(222 47% 11% / 0.06);
  color: var(--navy);
}

.pain-icon svg {
  width: 24px;
  height: 24px;
}

.pain {
  margin: 0;
  font-weight: 700;
  line-height: 1.6;
}

.pain::before {
  content: "「";
}

.pain::after {
  content: "」";
}

.answer {
  margin: 0;
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1.6;
}

.answer::before {
  content: "→ ";
  font-weight: 700;
}

/* 先行利用 */
.apply {
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.apply .section-title,
.apply .section-lead {
  color: #fff;
}

.apply .section-lead {
  opacity: 0.85;
}

.apply .button {
  background: #fff;
  color: var(--navy);
}

.apply .button:hover,
.apply .button:focus-visible {
  background: var(--bg-soft);
}

.apply-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 0 auto 40px;
  max-width: 860px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  text-align: left;
}

.apply-steps li {
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: var(--radius);
  counter-increment: step;
}

.apply-steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}

.apply .small-print {
  margin: 20px 0 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.apply .small-print a {
  color: #fff;
}

/* よくある質問 */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  list-style: none;
}

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

.faq summary::before {
  content: "Q.";
  margin-right: 10px;
  color: var(--accent);
}

.faq details p {
  margin: 0 0 16px;
  padding-left: 1.9em;
  color: var(--muted);
}

/* フッター */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer p {
  margin: 0;
}

/* プライバシーポリシーなどの文書 */
.document {
  padding: 64px 0 96px;
}

.document h1 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.document .updated {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.document h2 {
  margin: 40px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 1.2rem;
}

.document ol,
.document ul {
  padding-left: 1.5em;
}

.document table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.document th,
.document td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.document th {
  width: 32%;
  background: var(--bg-soft);
  font-weight: 700;
}

.todo {
  background: hsl(48 96% 89%);
  padding: 0 4px;
}

@media (max-width: 900px) {
  .hero-grid,
  .showcase {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .showcase.reverse .showcase-text {
    order: 0;
  }

  .hero-shot {
    transform: none;
  }

  .showcase {
    margin-bottom: 64px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 64px 0 56px;
  }

  section {
    padding: 56px 0;
  }

  .header-cta {
    display: none;
  }

  .feature-row {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }

  .feature-row .num {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
