/* たねばこ 共通スタイル（モバイルファースト） */

:root {
  --bg: #faf6ee;
  --surface: #fffdf8;
  --ink: #2b2a26;
  --muted: #5f5b52;
  --line: #e3dccd;
  --green: #2f5d46;
  --green-dark: #234735;
  --green-soft: #e4eee6;
  --accent: #b4472a;
  --accent-dark: #943819;
  --accent-soft: #f8e6dd;
  --radius: 14px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  line-break: strict;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.4;
  font-weight: 700;
  word-break: auto-phrase;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0;
}

a {
  color: var(--green);
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3rem 0;
}

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

.section__lead {
  margin-top: 0.75rem;
  color: var(--muted);
}

.section__body {
  margin-top: 1.5rem;
}

/* ボタン */

.button {
  display: inline-block;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-dark);
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
}

.button--block {
  display: block;
  width: 100%;
}

/* ラベル */

.badge {
  display: inline-block;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ステップ（検証の流れ、使い方の流れ） */

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 3rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.steps p {
  color: var(--muted);
}

/* フッター */

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer__name {
  color: var(--ink);
  font-weight: 700;
}

/* ハブ */

.hub-header {
  padding: 3.5rem 0 2.5rem;
}

.hub-header h1 {
  color: var(--green-dark);
  font-size: 2.4rem;
  letter-spacing: 0.06em;
}

.hub-header__tagline {
  margin-top: 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.hub-header__about {
  margin-top: 1.25rem;
  color: var(--muted);
}

.app-card {
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.app-card h3 {
  margin-top: 0.75rem;
  font-size: 1.2rem;
}

.app-card p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.app-card .button {
  margin-top: 1.25rem;
}

.next-note {
  margin-top: 1.25rem;
  color: var(--muted);
}

/* LP: ファーストビュー */

.hero {
  padding: 2.5rem 0 3rem;
}

.hero__inner {
  display: grid;
  gap: 2.5rem;
}

.hero__name {
  margin-top: 0.75rem;
  color: var(--green-dark);
  font-weight: 700;
}

.hero h1 {
  margin-top: 0.25rem;
  font-size: 2.1rem;
}

.hero__lead {
  margin-top: 1rem;
}

.hero .button {
  margin-top: 1.5rem;
}

.hero__note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* LP: カードの画面イメージ */

.mock {
  margin: 0;
}

.mock__stack {
  position: relative;
  width: min(100%, 17rem);
  height: 14rem;
  margin: 0 auto;
}

.mock__card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.mock__card--back2 {
  transform: rotate(6deg) translate(0.5rem, 0.25rem);
  background: var(--green-soft);
}

.mock__card--back1 {
  transform: rotate(-4deg) translate(-0.35rem, 0.1rem);
  background: var(--accent-soft);
}

.mock__card--front {
  box-shadow: 0 8px 20px rgb(43 42 38 / 12%);
}

.mock__dish {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
}

.mock__meta {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.mock__actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.mock__skip {
  color: var(--muted);
}

.mock__keep {
  color: var(--accent-dark);
}

.mock figcaption {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

/* LP: 課題の共感 */

.pains li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

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

/* LP: できること */

.features {
  display: grid;
  gap: 1rem;
}

.features li {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
}

.features p {
  margin-top: 0.4rem;
  color: var(--muted);
}

/* LP: フォーム */

.form {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label {
  display: block;
  margin-bottom: 0.5rem;
  padding: 0;
  font-weight: 700;
  line-height: 1.5;
}

.field__tag {
  margin-left: 0.4rem;
  color: var(--accent-dark);
  font-size: 0.8rem;
}

.field__tag--optional {
  color: var(--muted);
}

.input {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--muted);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.3rem 1rem;
  border: 1px solid var(--muted);
  border-radius: 999px;
  background: #fff;
  line-height: 1.4;
}

.choice input:checked + span {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.choice input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.field__error {
  margin-top: 0.4rem;
  color: var(--accent-dark);
  font-size: 0.875rem;
  font-weight: 700;
}

.field__error:empty,
.form-status:empty {
  display: none;
}

.form-status {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--green-soft);
  font-weight: 700;
}

.form-status--error {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.privacy {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.noscript-note {
  margin-top: 1rem;
  font-weight: 700;
}

/* LP: 注意書き */

.notes {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* サンクスページ */

.thanks {
  padding: 4rem 0;
}

.thanks h1 {
  font-size: 1.6rem;
}

.thanks p {
  margin-top: 1rem;
}

.thanks__links {
  margin-top: 2rem;
}

/* PC */

@media (min-width: 48rem) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero .wrap {
    max-width: 60rem;
  }

  .hero__inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .features,
  .steps--row {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps--row li {
    padding-top: 3rem;
    padding-left: 0;
  }

  .form {
    padding: 2rem;
  }
}
